Questions tagged [jasypt]

Jasypt is a Java-based encryption library, designed for ease of use with minimum necessary knowledge of how cryptography works.

Jasypt (Java simplified encryption) is a java library which allows the developer to add basic encryption capabilities to his/her projects with minimum effort, and without the need of having deep knowledge on how cryptography works.

  • High-security, standards-based encryption techniques, both for unidirectional and bidirectional encryption. Encrypt passwords, texts, numbers, binaries...
  • Transparent integration with Hibernate.
  • Suitable for integration into Spring-based applications and also transparently integrable with Spring Security.
  • Integrated capabilities for encrypting the configuration of applications (i.e. datasources).
  • Specific features for high-performance encryption in multi-processor/multi-core systems.
  • Open API for use with any JCE provider.
  • ... and much more

Official Website: http://jasypt.org/

Useful Links:

361 questions
6
votes
3 answers

@SpringBootTest not using test properties

I am using jasypt for encrypting application.properties in a Spring Boot application. My goal is to update my integration tests so that jasypt is used with test encryptor password. My problem is that my test is not overriding the test properties.…
2dor
  • 851
  • 3
  • 15
  • 35
6
votes
2 answers

Jasypt: Encryption successful but decryption fails for stronger algorithms

I am using Jasypt's CLI for testing encryption and decryption. The encryption is successful for all the algorithms but decryption fails for stronger algorithms. Here is the encryption and decryption for…
prakasht
  • 448
  • 4
  • 16
6
votes
1 answer

String encryption with Jasypt library

I want to encrypt a string, but the standard Java libraries are too complicated for me. So I turned to Jasypt labriry. It's pretty simple to use and understan. However when I import the library to Eclipse 3.6 and when I try encrypt a string like…
Tian
  • 2,453
  • 5
  • 18
  • 10
6
votes
4 answers

jasypt in cmd: cannot find main class

I am using jasypt 1.9.2 in Windows 7 x64 cmd. Here's encrypt.bat content: ECHO ON set SCRIPT_NAME=encrypt.bat set EXECUTABLE_CLASS=org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI set EXEC_CLASSPATH=. if "%JASYPT_CLASSPATH%" == "" goto…
WesternGun
  • 11,303
  • 6
  • 88
  • 157
6
votes
1 answer

how can my password contain special characters using jasypt and encrypt.sh?

Trying to use the encrypt.sh utility and my password has special characters: ./encrypt.sh input="$%#!" password="your_jasypt_password" algorithm="PBEWITHSHA256AND128BITAES-CBC-BC" keyObtentionIterations=1000 providerName="BC" -bash: !": event not…
user2395365
  • 1,991
  • 4
  • 18
  • 34
6
votes
3 answers

Cannot encrypt password in configuration file

I'm having trouble encrypting the database password in hibernate.cfg.xml This is my property file. com.microsoft.sqlserver.jdbc.SQLServerDriver
nachokk
  • 14,363
  • 4
  • 24
  • 53
6
votes
2 answers

Encryption function returns different output every time

I have following code - import org.jasypt.util.text.BasicTextEncryptor; public static void main(String[] args) { BasicTextEncryptor textEncryptor = new BasicTextEncryptor(); textEncryptor.setPassword("kshitiz"); String cipherText =…
Kshitiz Sharma
  • 17,947
  • 26
  • 98
  • 169
6
votes
4 answers

Receiving NullPointerException while using Jasypt and Spring Security 3.1

I am trying to configure Jasypt with Spring Security. My configuration file looks like this: jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:8090/sample jdbc.username=ENC(*****) where the *****=the salted username …
user2660762
  • 61
  • 1
  • 1
  • 5
5
votes
1 answer

Store encryption keys in Java code?

I am using JASYPT for encryption decryption of passwords in our Java based software. This is how, we encrypt the password: StrongTextEncryptor textEncryptor = new StrongTextEncryptor(); …
DG.
  • 553
  • 4
  • 13
  • 21
5
votes
3 answers

Unable to decrypt error using jasypt with spring boot

I am using spring boot:2.2.2.RELEASE when i tried to add jasypt functionality to hide my password i got the following error Unable to decrypt: ENC(MyEncryptedPass). Decryption of Properties failed, make sure encryption/decryption passwords match i…
AHM200
  • 135
  • 1
  • 3
  • 13
5
votes
1 answer

Why is the following annotation legal in Java but not in groovy?

I wanted to add encryption to my application using the Jasypt library. Their integration page says to add a @TypeDef annotation: "Define the encryption type with a @TypeDef annotation, which could be either inside the persisted entity class or…
Mike R
  • 4,448
  • 3
  • 33
  • 40
4
votes
1 answer

When using Jaspyt to encrypt Spring properties files, is an environment variable really a secure place to store the master password?

I'm using Jaspyt and Spring 3 in my Java project. I currently store the database connection properties in a properties file. The user name and password are plain text, so I've been looking at using Jaspyt's…
user935265
  • 254
  • 1
  • 2
  • 10
4
votes
1 answer

Jasypt out of maintenance? What to use for encryption with Spring Boot

Jasypt (https://github.com/jasypt/jasypt) and the according Spring Boot integration (https://github.com/ulisesbocchio/jasypt-spring-boot) do not really seem to be alive any longer. issues with the latest LTS Java version (17) no activity in the…
jens
  • 1,763
  • 1
  • 15
  • 25
4
votes
3 answers

Jasypt not decrypting properties during junit testing, but works fine when spring boot app runs

I have a Spring Boot application with a few properties encrypted with Jasypt, and I provide the secret key with the following VM option: -Djasypt.encryptor.password=secretkey Everything is working perfectly when I run my application locally and in…
cldaly
  • 41
  • 1
  • 2
4
votes
2 answers

Implement PBEWITHHMACSHA512ANDAES_256 of java jasypt in python

I am trying to encrypt a password in python and decrypt it in java springboot application using the jasypt library through jasypt plugin. What i have done so far For simplicity i have used a zero salt and a fixed iv I have written the python script…
Dimitris
  • 43
  • 1
  • 6
1
2
3
24 25