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
0
votes
0 answers

How can I encrypt an entire file?

Can we encrypt entire spring application.properties using Jasypt application.properties propOne=ENC(asdfafd) propTwo=ENC(adf;lkj$1)
Stin
  • 141
  • 1
  • 2
  • 12
0
votes
1 answer

Spring @Configuration class contains @Bean methods but how can I get execute init() first?

I'm on a Spring project and have skill level 1 with Spring. 2 days I have been reading and trying to get Jasypt encryption working with some existing code but the value that is passed is the ENC(....) value that needs to be transformed. The one…
edjm
  • 4,830
  • 7
  • 36
  • 65
0
votes
1 answer

Why is jasypt PBE not working on server but works locally?

I have a spring-boot(2.0.1) application that uses jasypt to encrypt passwords. I encrypt the passwords using the encrypt.sh script in jasypt/bin. When I run on my local machine ( via IntelliJ) there is no issue. When I make a jar and run it on a…
jebrick
  • 339
  • 1
  • 6
  • 14
0
votes
0 answers

Pass command-line argument for a particular Tomcat web-application startup

For my Spring-Boot project, I have used jasypt library for encrypting my datasource.password in application.properties file. In my localhost setup, I have configured VM arguments in eclipse and it works completely…
0
votes
1 answer

Unable to login DB using jasypt

Hi I am using below maven dependency in my Spring boot application. com.github.ulisesbocchio jasypt-spring-boot-starter 1.16 I am using below…
Aditya Ekbote
  • 1,493
  • 3
  • 15
  • 29
0
votes
0 answers

PBEWITHSHA256AND256BITAES-CBC-BC clarification

We are using PBEWITHSHA256AND256BITAES-CBC-BC algorithm for encrypting data. What is the role of SHA-256 here? Most of the forums states that PBKDF2 is a key derivation function? Does that use any algorithm internally to convert digest the plain…
Steve
  • 21
  • 1
  • 4
0
votes
1 answer

Jasypt org.jasypt.exceptions.EncryptionOperationNotPossibleException

I am trying to use 3DES in my Jasypt but I am getting an exception. But when I am using default algorithm it is working fine Here is the code - public MyEncryptablePropertyResolver(Environment environment) { char[] password =…
Ravat Tailor
  • 1,193
  • 3
  • 20
  • 44
0
votes
0 answers

Spring hashing password in applicationContext.xml

I have a spring java project (not boot) I am trying to hash the password in the applicationContext.xml (Spring Configuration File) So I followed the instructions on the web to use jasypt Steps I followed : I changed the password to
JavaSheriff
  • 7,074
  • 20
  • 89
  • 159
0
votes
0 answers

Using jasypt to encrypt passwords will randomly start to fail on checkPassword for StrongPasswordEncryption

The code is simple: public static String encryptedPassword(String password) { return new StrongPasswordEncryptor().encryptPassword(password); } public static boolean checkPassword(String password, String encryptedPassword) { return new…
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
0
votes
1 answer

Jasypt unable to decrypt password

I am trying to decrypt password with jasypt, where password is passed as a VM argument. xml file which is using this looks like -
codeomnitrix
  • 4,179
  • 19
  • 66
  • 102
0
votes
2 answers

Jasypt decryption EncryptionOperationNotPossibleException while using newer algorithms

I am using Jasypt APIs (version 1.9.2) for encryption and decryption. While listing the algorithms using the command line interface tool, I am getting the following list. listAlgorithms.bat PBE ALGORITHMS: [PBEWITHHMACSHA1ANDAES_128,…
S.Jose
  • 409
  • 5
  • 15
0
votes
1 answer

Miffed... Simple Code, but ... org.jasypt.exceptions.EncryptionOperationNotPossibleException

I have used this code or something similar time and again within the server code on my web apps, but now I am trying to make a command line utility to work with the maintenance backend. Keep on getting a EncryptionOperationNotPossibleException, but…
kirtcathey
  • 343
  • 1
  • 6
  • 16
0
votes
1 answer

Tomcat Realm used with Jasypt and SHA-256

I create new users who can log into my Java EE application using Jasypt to hash the password: I use SHA-256, an 8 bytes salt, 1000 iterations and get an 80-character hexadecimal hash in the database. This is working. Here is the…
macadam
  • 31
  • 5
0
votes
1 answer

how can i use jasypt for spring.datasource.password=${db.password:abcd}

I am using spring-boot and I have below the property for db connection. I want to use jasypt for below spring.datasource.password=${db.password:abcd} property I tried spring.datasource.password=${db.password:ENC()} property But it's…
Musaddique S
  • 1,539
  • 2
  • 15
  • 36
0
votes
1 answer

jasypt with spring boot

I am using jasypt-spring-boot-starter:1.14 along with spring-boot-2.0.0.M2 It works perfectly fine if the application.properties is available in the classpath ( src/main/resources ) Spring boot will work even if the application.properties is placed…
lives
  • 1,243
  • 5
  • 25
  • 61