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
2 answers

Choosing the right Jasypt encryptor implementation for passing encrypted data via HTTP

My application manipulates database identifiers. I wish to hide those values from my users. I am looking for a way to encrypt those identifiers when they are passed on from the server-side to the client-side and decrypt them when they are passed the…
balteo
  • 23,602
  • 63
  • 219
  • 412
0
votes
0 answers

Using Jasypt in Spring Batch

I'm creating a Java batch job using Spring Batch and I want to encrypt some of the properties, like database authentication passwords. Jasypt seems to be the most recommended solution and there is good documentation at…
Woodchuck
  • 3,869
  • 2
  • 39
  • 70
0
votes
0 answers

Cannot decrypt encrypted text through BasicTextEncryptor?

I am using BasicTextEncryptor Class to text encryption and decryption text. While executing the class file I am getting an exception Exception in thread "main" org.jasypt.exceptions.EncryptionOperationNotPossibleException: Encryption raised an…
Sachi-17
  • 499
  • 4
  • 12
  • 29
0
votes
0 answers

Jasypt with Spring fails to load Bean

I am trying to integrate Jasypt with Spring to load the properties file . I am using the following class="org.jasypt.spring3.properties.EncryptablePropertyPlaceholderConfigurer"> instead of the Spring provided placeholder . Although I have…
Aditya
  • 159
  • 1
  • 1
  • 10
0
votes
2 answers

How do I configure Jasypt to use a ZeroSaltGenerator?

I'm using Grails 1.3.7 with Jasypt and I have the below in my Config.groovy: jasypt { algorithm = "PBEWithMD5AndTripleDES" password = "password" keyObtentionIterations = 1 saltSizeBytes = 0 } How can I set the salt property to…
0
votes
0 answers

'UNEXPECTED TOP-LEVEL EXCEPTION' multiple dex files define...in Android Studio with Jasypt

So i've been getting this unexpected top level exception error after adding the jasypt libraries to my project. I've tried a lot of the other fixes suggested in other similar questions to no avail Here's my gradle build message: UNEXPECTED…
vn2456
  • 19
  • 3
0
votes
1 answer

Can't save Jasypt encrypted password to .properties file

I'm trying to store some strings in a .properties file. Now i want to encrypt those strings with Jasypt. But when I try to save this to the .properties file it is missing the surrounding "ENC()". When i try to insert this manually, the string is…
bahuma20
  • 23
  • 7
0
votes
1 answer

Encrypt dates with Jasyp: password not set exception

I'm using jasypt-1.9.2.jar in a spring 4.1.1 web application. I have the necessity to encrypt both dates and strings in the database. I enter the global password at runtime trough a web form. The process works well for strings but when I try to…
malavock
  • 341
  • 1
  • 5
  • 21
0
votes
1 answer

JPA in JBoss - Hibernate custom field type configuration

I'm using annotation based entities. I want to use the jasypt encryption datatypes. I cannot find anything that clearly indicates how to configure them. My persistance.xml just has references to a datasource - no hibernate specific configs. Is…
fansonly
  • 1,150
  • 4
  • 14
  • 29
0
votes
1 answer

jasypt, encrypt and replace large configuration data in one shot

I am using Jasypt to encrypt and decrypt confidential configuration data in a Java application. Although its easy to use a command line to encrypt a value and replace in configuration file however it is not practical for file containing hundreds of…
Mark1234
  • 589
  • 2
  • 8
  • 24
0
votes
1 answer

Could not resolve placeholder in two spring xml context

I have two Spring xml context as below : mail-config.xml
Pooya
  • 4,385
  • 6
  • 45
  • 73
0
votes
2 answers

How to implement authentication in Standard way?

I am trying to develop a user authentication for my project. To realize this I have created a table have two columns having username and password. The username is stored as it is, where as the password is encrypted using jasypt. i.e The password…
User27854
  • 824
  • 1
  • 16
  • 40
0
votes
1 answer

grails jasypt-encryption: cannot resolve import GormEncryptedStringType

I have installed jasypt-encryption, as i believe correctly: in my BuildConfig.groovy plugins closure: compile ":jasypt-encryption:1.3.1" runtime ":hibernate4:4.3.5.5" So i have the correct jasypt version for the corresponding hibernate version. in…
lxknvlk
  • 2,744
  • 1
  • 27
  • 32
0
votes
1 answer

Where i can store the encrypted key using jasypt

I Have a grails application and i want to secure data before store it in the database. Hibernate grails and jasypt offer this possibility using EncryptedStringType. but this will need a key. where i can store this key ??. please refer to this…
Yazid
  • 108
  • 3
  • 12
0
votes
1 answer

Configure Jasypt Encryptors using my own SecretKey, instead of setting String password using the 'setPassword' method of the PBEString encryptors?

I'm trying to configure Jasypt StandardPBEStringEncryptor using the following code. StandardPBEStringEncryptor strongEncryptor = new StandardPBEStringEncryptor(); strongEncryptor.setAlgorithm(ALGORITHM); strongEncryptor.setPassword(PASSWORD); And…
always_a_rookie
  • 4,515
  • 1
  • 25
  • 46