Jasypt decrypt and encrypt
Runs in your browserPaste 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
More options
Paste ENC(…) and the Jasypt password
One value, a whole application.properties or application.yml. Every ENC(…) is decrypted, the algorithm is found automatically.
Value and password
The result works with jasypt-spring-boot and StandardPBEStringEncryptor.
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.
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.
| Part | PBEWithHMACSHA512AndAES_256 | PBEWithMD5AndDES |
|---|---|---|
| Salt | 16 bytes | 8 bytes |
| IV | 16 bytes (RandomIvGenerator) | none (NoIvGenerator), 8 bytes with RandomIvGenerator |
| Data | AES-256-CBC | DES-CBC |
| Key from password | PBKDF2-HMAC-SHA512, 1,000 rounds | MD5, 1,000 rounds (PBKDF1) |
| Default in | jasypt-spring-boot 3.x | Jasypt 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.
The same with the Jasypt CLI, Java and Maven
decrypt.sh input="…base64…" password='secret' algorithm=PBEWITHHMACSHA512ANDAES_256 \ ivGeneratorClassName=org.jasypt.iv.RandomIvGenerator
mvn jasypt:decrypt-value -Djasypt.encryptor.password='secret' -Djasypt.plugin.value='ENC(…)'
StandardPBEStringEncryptor e = new StandardPBEStringEncryptor();
e.setAlgorithm("PBEWITHHMACSHA512ANDAES_256");
e.setIvGenerator(new RandomIvGenerator());
e.setPassword(System.getenv("JASYPT_ENCRYPTOR_PASSWORD"));
String plain = e.decrypt("…base64…");# 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
Why the app won’t start
Spring Boot stops with EncryptionOperationNotPossibleException or “Failed to decrypt”. These are the usual reasons:
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.
AES needs RandomIvGenerator; with NoIvGenerator the IV is missing and decryption fails. The tool tries both and shows the settings that work.
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.
Java’s PBE implementations accept only ASCII passwords: “Password is not ASCII”.
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.
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.
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.
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.