Encrypt and decrypt using Jasypt

Written by Mushfiq Mammadov

Jasypt is very simple and easy library for encrypt and decrypt in Java. You can encrypt your data with your key. Then you can decrypt it with the same key.

Before using this library you have to add the following dependency to your maven project:

Simple code example:




You can use this library in RESTful Web Service to encrypt json data. I developed very simple code example regarding it.


RESTful Web Service example:


Client example:


Github links of the above codes:

Other links about this topic:


About the author

Mushfiq Mammadov

Leave a Comment


This site uses Akismet to reduce spam. Learn how your comment data is processed.