# How do I decrypt logs encrypted in PBEWithMD5AndDES in logstash?

**URL:** https://discuss.elastic.co/t/how-do-i-decrypt-logs-encrypted-in-pbewithmd5anddes-in-logstash/64122
**Category:** Logstash
**Created:** [October 27, 2016, 9:52am UTC](https://discuss.elastic.co/t/how-do-i-decrypt-logs-encrypted-in-pbewithmd5anddes-in-logstash/64122 "2016-10-27T09:52:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![malik](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@malik](https://discuss.elastic.co/u/malik)
#### Post date: [October 27, 2016, 9:52am UTC](https://discuss.elastic.co/t/how-do-i-decrypt-logs-encrypted-in-pbewithmd5anddes-in-logstash/64122/1 "2016-10-27T09:52:52Z")

</div>

I have logs which are encrypted using Java **jasypt-1.92** in **PBEWithMD5AndDES** algorithm. What I need is to **decrypt** these logs in Logstash before sending them to elasticsearch/filters-grok.

While going through logstash documentations found that decryption can be achieved by using filter **plugin - Cipher**. But I could not find the right replacement for PBEWithMD5AndDES algorithm from the list of algorithms supported by this cipher plugin of logstash.

It would help a lot if anybody could suggest the correct algorithm or the right approach to achieve this, like something that I could tinker in logstash to take encrypted log and decrypt it.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 4:32am UTC](https://discuss.elastic.co/t/how-do-i-decrypt-logs-encrypted-in-pbewithmd5anddes-in-logstash/64122/2 "2017-07-06T04:32:22Z")

</div>


