Jasypt decrypt and encrypt

Runs in your browser

Paste an ENC(…) value or the whole application.properties and the Jasypt password. The algorithm is found automatically, every value is decrypted at once. Nothing leaves your browser.

More options
Waiting for input

Paste ENC(…) and the Jasypt password

One value, a whole application.properties or application.yml. Every ENC(…) is decrypted, the algorithm is found automatically.

Examples

Start from an example

Each example fills in the tool above and decrypts it. All keys and passwords are demo values made for this page.

The format

What is inside ENC(…)

ENC(…) is not part of Jasypt itself: it is the marker jasypt-spring-boot looks for in application.properties and application.yml. Inside is Base64 (or hex) of three parts. Which algorithm made it is written nowhere: it comes from your configuration.

PartPBEWithHMACSHA512AndAES_256PBEWithMD5AndDES
Salt16 bytes8 bytes
IV16 bytes (RandomIvGenerator)none (NoIvGenerator), 8 bytes with RandomIvGenerator
DataAES-256-CBCDES-CBC
Key from passwordPBKDF2-HMAC-SHA512, 1,000 roundsMD5, 1,000 rounds (PBKDF1)
Default injasypt-spring-boot 3.xJasypt 1.9, jasypt-spring-boot 2.x, BasicTextEncryptor

The tool tries 17 algorithms (all PBE algorithms Java offers for Jasypt) with and without IV. If you changed key-obtention-iterations, enter the number under More options.

In your code

The same with the Jasypt CLI, Java and Maven

Jasypt CLI
decrypt.sh input="…base64…" password='secret' algorithm=PBEWITHHMACSHA512ANDAES_256 \
  ivGeneratorClassName=org.jasypt.iv.RandomIvGenerator
Maven plugin
mvn jasypt:decrypt-value -Djasypt.encryptor.password='secret' -Djasypt.plugin.value='ENC(…)'
Java
StandardPBEStringEncryptor e = new StandardPBEStringEncryptor();
e.setAlgorithm("PBEWITHHMACSHA512ANDAES_256");
e.setIvGenerator(new RandomIvGenerator());
e.setPassword(System.getenv("JASYPT_ENCRYPTOR_PASSWORD"));
String plain = e.decrypt("…base64…");
Spring Boot
# never commit the password; pass it at start:
java -Djasypt.encryptor.password='secret' -jar app.jar
# or: JASYPT_ENCRYPTOR_PASSWORD=secret java -jar app.jar
Common errors

Why the app won’t start

Spring Boot stops with EncryptionOperationNotPossibleException or “Failed to decrypt”. These are the usual reasons:

Algorithm changed with the upgrade

jasypt-spring-boot 3.0 switched the default from PBEWithMD5AndDES to PBEWithHMACSHA512AndAES_256 with RandomIvGenerator. Old ENC values fail until you set jasypt.encryptor.algorithm to PBEWithMD5AndDES and iv-generator-classname to org.jasypt.iv.NoIvGenerator, or re-encrypt them.

IV generator doesn’t match

AES needs RandomIvGenerator; with NoIvGenerator the IV is missing and decryption fails. The tool tries both and shows the settings that work.

Wrong password

Jasypt has no integrity check, so a wrong password shows up as “Operation not possible” or, rarely, as garbage. Check JASYPT_ENCRYPTOR_PASSWORD in the environment where the app runs.

Non-ASCII password

Java’s PBE implementations accept only ASCII passwords: “Password is not ASCII”.

Spring Cloud Config

And {cipher}… values?

Spring Cloud Config writes '{cipher}…' instead: hex of a 16-byte IV and AES-256 data, with the key from encrypt.key stretched by PBKDF2-HMAC-SHA1 (1,024 rounds) and the salt deadbeef. This page decrypts those too. Keys from a keystore (RSA) aren’t supported.

Under the hood

Tested against the original tools

Every format on this page was checked against values made by the real tool, on 3 December 2026:

  • 119 values made with the real Jasypt 1.9.3 library (all 17 PBE algorithms, with and without IV, 1,000 and 5,000 iterations, Base64 and hex) and with Spring Security Crypto (Encryptors.text and delux, as Spring Cloud Config uses them).
  • Each value must be decrypted with the algorithm found automatically.
  • What the tool encrypts, Jasypt decrypts.
More formats

Other encrypted formats

Every format has its own page with the same tool. Paste anything into one of them: if it belongs elsewhere, the tool says so and takes it there.

FAQ

Questions about Jasypt

How do I decrypt a Jasypt ENC() value?

Paste the value or the whole application.properties above and enter jasypt.encryptor.password. In code: StandardPBEStringEncryptor with the same algorithm and IV generator, then decrypt() with the text inside the brackets.

Which algorithm does jasypt-spring-boot use?

Since version 3.0: PBEWITHHMACSHA512ANDAES_256 with RandomIvGenerator and 1,000 iterations. Before: PBEWithMD5AndDES without IV. The tool tries both and all others.

Is Jasypt secure?

With AES-256 and a long random password, the encryption is fine. The weak spot is the password: it must reach the app somehow, and it shouldn’t be in the same repository. PBEWithMD5AndDES (56-bit DES) is outdated.

Is Jasypt still maintained?

The library itself has seen no release since 1.9.3 (2019); jasypt-spring-boot is maintained and still very common in Spring projects.

Is it safe to paste production values here?

Everything runs in your browser: nothing you paste is sent anywhere, not even to this site. The page’s Content-Security-Policy blocks connections to other sites; check the Network tab of your browser’s developer tools.

Searches the list of pages on this site. What you type stays in your browser.