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
4
votes
1 answer

Jasypt encryption stops working after upgrade to JDK 7u261

We recently upgraded to JDK 7u261 from JDK 7u251 as the new release was available to Java SE support customers on April 15, 2020. The Jasypt encryption stopped working after this Java version upgrade. I receive the following error…
user57358
  • 139
  • 1
  • 4
  • 13
4
votes
3 answers

How to hide the password in the command "java -Djasypt.encryptor.password=somepassword -jar name.jar"

I am using Jasypt encryption and specifying the property value within ENC() in the properties file. The decryption password is sent through the command-line argument like this java -Djasypt.encryptor.password=somepassword -jar name.jar. Everything…
Sai Teja
  • 43
  • 1
  • 7
4
votes
0 answers

Using HQL queries with like clause in jasypt hibernate encryption

I am using jasypt hibernate encryptor (with ZeroSaltGenerator) in one of my spring projects. Everything is working fine but I am stuck at usage of 'like' clause in my HQL queries. I have a working HQL query like this: List
Naveen Kumar
  • 384
  • 2
  • 11
  • 31
4
votes
4 answers

How to securely send passwords between Android client and server side application?

My current Android application requires users to login with Username and Password. The Android application calls a REST web service for user login and I do not want to transmit the password as cleartext. How do I go about securing my users passwords…
Hector
  • 4,016
  • 21
  • 112
  • 211
4
votes
0 answers

Jasypt and .war deployment issue: jasypt.encryptor.password missing

I am trying to deploy my SpringBoot .war to tomcat but it fails due to: Failed to bind properties under 'spring.mail.password' to java.lang.String: Reason: Required Encryption configuration property missing: jasypt.encryptor.password Where do I…
4
votes
0 answers

org.xml.sax.SAXParseException JASypt conflict when upgrading Spring beyond 4.2.1 using Java

I am trying to upgrade my spring version from "4.1.5.RELEASE" to "5.0.3.RELEASE" (the latest). When I go to any version beyond "4.2.1.RELEASE", I am getting the following error: Caused by:…
Garet Jax
  • 1,091
  • 3
  • 17
  • 37
4
votes
2 answers

Jasypt: how secure master password?

Colleagues, i used Jasypt in my spring-boot project (standalone jar running on Windows). I need to pass master password via command line to run jar . It looks like: java -jar -Djasypt.encryptor.password=masterpass app-1.0.0-RELEASE.jar So anybody…
May12
  • 2,420
  • 12
  • 63
  • 99
4
votes
0 answers

How to encrypt text using openssl and PBEWithMD5AndDES?

What is an openssl equivalent of using jasypt with algorithm PBEWithMD5AndDES? Example using jasypt: java -cp ~/.m2/repository/org/jasypt/jasypt/1.9.2/jasypt-1.9.2.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI input="contactspassword"…
mpr
  • 3,730
  • 3
  • 17
  • 22
4
votes
1 answer

Is ENC function necessary before encrypted value in .properties file?

As a general rule, jasypt expects encrypted configuration parameters to appear surrounded by "ENC(...)". For example, in appConfig.properties file I have following properties: databaseurl = sampleurl username = username password = password If I…
preetham
  • 738
  • 1
  • 8
  • 15
4
votes
1 answer

Spring boot not loading PropertySourceLoader

With spring boot version 1.2.3 (also tested it with 1.2.5), I am following creating-a-custom-jasypt-propertysource-in-springboot and Spring Boot & Jasypt easy: Keep your sensitive properties encrypted to use jsypt library using custom…
amique
  • 2,176
  • 7
  • 34
  • 53
4
votes
2 answers

In .NET, how can I decrypt values that were encrypted using PBEWithMD5AndDES in Java?

We're migrating data from a legacy Java app into our newer .NET app. The Java app has a MySQL backend, and the .NET app has a SQL Server back end. We have the full source code and config files for both, but none of the developers who worked on the…
Joshua Carmody
  • 13,410
  • 16
  • 64
  • 83
4
votes
1 answer

Why set a password using Jasypt when encrypting text?

To encrypt a password I use (modified from http://www.jasypt.org/encrypting-texts.html): BasicTextEncryptor textEncryptor = new BasicTextEncryptor(); textEncryptor.setPassword(myEncryptionPassword); String myEncryptedText =…
blue-sky
  • 51,962
  • 152
  • 427
  • 752
4
votes
1 answer

BadPaddingException with Jasypt library

I am not sure whether this is a bug or I am doing some mistake. In either case, I need help from somebody. We have incorporated Jasypt along with Spring 2.05 in our web application in which we are encrypting some passwords in the properties file.…
Kashif Nazar
  • 20,775
  • 5
  • 29
  • 46
4
votes
1 answer

Jasypt 1.9 : Encrypting passwords with exclamation

I am using Jasypt 1.9, and when I try to encrypt a password with exclamation it fails. It works fine without exclamation for ex: ./encrypt.sh input="abc!abc" -sh: !abc": event not found Jasypt claims it is fixed here..…
Himalay Majumdar
  • 3,883
  • 14
  • 65
  • 94
4
votes
2 answers

Encryption Exception while loading application properties ( Java jasypt encryption)

When trying to install a module using Maven, it throws up the following error: org.jasypt.exceptions.EncryptionOperationNotPossibleException: Encryption raised an exception. A possible cause is you are using strong encryption algorithms and you have…
Chillax
  • 4,418
  • 21
  • 56
  • 91
1 2
3
24 25