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:

333 questions
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
  • 14,651
  • 4
  • 23
  • 38
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,433
  • 12
  • 53
  • 87
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
  • 3,514
  • 17
  • 49
  • 76
3
votes
2 answers

java jasypt suddenly crashes

Since yesterday my textencrypter(jasypt) stopped working for no reason. Here is a code example and the error msg. Does anybody know what is going on? Code example: StrongTextEncryptor crypter = new StrongTextEncryptor(); …
Jixo
  • 55
  • 5
3
votes
2 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
  • 33
  • 1
  • 7
3
votes
1 answer

Jasypt hibernate 5 support?

I'm upgrading a Spring project's Spring version5.1.5.RELEASE which requires an upgrade to Hibernate 5. I checked the jasypt maven repo but it doesn't seem to have a Hibernate 5 supported version yet. What's the way to get around this? I don't even…
Shanky
  • 709
  • 11
  • 31
3
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
  • 2,024
  • 15
  • 69
  • 142
3
votes
1 answer

Crypto policy unlimited ignored by JBoss

While trying to encrypt some data using jasypt, I run across the exception below: org.jasypt.exceptions.EncryptionOperationNotPossibleException: Encryption raised an exception. A possible cause is you are using strong encryption algorithms and you…
gualizoe
  • 117
  • 1
  • 1
  • 11
3
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,090
  • 11
  • 49
  • 91
3
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
  • 2,740
  • 3
  • 13
  • 22
3
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
  • 586
  • 5
  • 12
3
votes
4 answers

spring boot not loading correct Jasypt application.properties for environment

I am trying to implement Jasypt in my Spring Boot 1.4 application because it seems overkill to use Spring Cloud Config for a small app like this. However, I am clearly not understanding how Spring Boot determines which environment its running, and…
sonoerin
  • 4,221
  • 17
  • 63
  • 118
3
votes
0 answers

Jasypt: Encrypt Multiple Passwords in Configuration File

I've seen multiple tutorials that explain using Jaspyt with Spring explaining how to encrypt a property value, but they always use only one value! What if I have two or more passwords that I want to encrypt? Here's what I have so far. How do I have…
Matt
  • 4,338
  • 11
  • 46
  • 72
3
votes
3 answers

Jasypt StandardPBEStringEncryptor setting password in spring bean configuration file

When using Jasypt's StandardPBEStringEncryptor we have to set password explicitly in spring bean configuration file. Is it ok and secure to have the password in the bean configuration file? Will it be a problem in PCI Compliance to store the…
Prabhu R
  • 12,624
  • 19
  • 75
  • 107
3
votes
0 answers

Access properties dynamically with Spring

I have a Spring application with xml configuration (v4.0.8) where I need to access properties dynamically rather than using @Value annotation. I tried using tho methods for this, one of them is using @ConfigurationProperties with a Map which gives…
rosencreuz
  • 1,166
  • 8
  • 19
1 2
3
22 23