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
32
votes
5 answers

How to find out what algorithm [ encryption ] are supported by my JVM?

I am using Jasypt for encryption. This is my code: public class Encryptor { private final static StandardPBEStringEncryptor pbeEncryptor = new StandardPBEStringEncryptor(); private final static String PASSWORD = "FBL"; private final…
Rakesh Juyal
  • 33,043
  • 66
  • 165
  • 212
17
votes
6 answers

Password encryption with Spring/Hibernate - Jasypt or something else?

In a Java application stack with Spring & Hibernate (JPA) in the Data Access Layer, what are good methods of applying the password encryption (hopefully using annotations), and where can you find out more about getting it done (tutorial, etc)? It's…
stevedbrown
  • 8,624
  • 8
  • 39
  • 57
13
votes
2 answers

EncryptionOperationNotPossibleException by Jasypt with Bouncy Castle

I try to use Jasypt with Bouncy Castle crypro provides (128Bit AES) in a Spring Application to decrypt entity properties while saving them with Hibernate. But I always get this org.jasypt.exceptions.EncryptionOperationNotPossibleException when try…
Ralph
  • 111,219
  • 48
  • 270
  • 362
13
votes
5 answers

org.jasypt.exceptions.EncryptionOperationNotPossibleException

I am using Jasypt-1.9.0 with Spring 3.1 and Hibernate 4.0.1. I have a requirement in my application to connect to database whose password(root) is stored in the encrypted form in the property file within the application. I looked online and found…
KAS
  • 5,132
  • 10
  • 35
  • 65
11
votes
3 answers

org.jasypt.exceptions.EncryptionOperationNotPossibleException in Tomcat

I'm using the Jasypt encryption library to encrypt/decrypt some text. This code is embedded in a WAR file and deployed to a server. When running locally, and in unit tests, the encrypt/decrypt cycle works perfectly. I use Jetty to develop the…
Erik
  • 885
  • 3
  • 13
  • 22
11
votes
2 answers

Full integration of encrypted properties in Spring 4/Boot

We're using Jasypt to encrypt some config properties (database passwords) but since the decryption key is stored on each environment's file system we have to do some manual @Bean configuration to load the password from the file then overlay loading…
user1016765
  • 2,555
  • 1
  • 24
  • 34
10
votes
2 answers

Decrypt using Jasypt

How to decrypt the encrypted password using Jasypt library? package com.uk.mysqlmaven.jsf.test; import org.jasypt.util.password.StrongPasswordEncryptor; import org.jasypt.util.text.StrongTextEncryptor; public class…
UdayKiran Pulipati
  • 6,053
  • 7
  • 60
  • 84
10
votes
2 answers

Command line Jasypt client encryption 'Operation not possible'

I am using Jasypt to store our database passwords in our hibernate config file in non-clear-text format. Eg instead of user1
Matt
  • 3,077
  • 4
  • 26
  • 50
9
votes
1 answer

What Java encryption algorithms should I use?

I'm working on a program that needs to store binary information encrypted at rest. Unfortunately, I can't seem to find a resource that explains which encryption schemes are best for different applications. Since encryption is complicated and I'm not…
MusikPolice
  • 1,327
  • 4
  • 15
  • 34
8
votes
2 answers

Creating a custom Jasypt PropertySource in Springboot

I'm using Spring Boot to create a simple web application which accesses a database. I'm taking advantage of the autoconfiguration functionality for the DataSource by setting up spring.datasource.* properties in application.properties. That all works…
Mudged
  • 252
  • 1
  • 5
  • 11
6
votes
1 answer

Encryption by jasypt

import org.jasypt.util.password.*; public class encrypt { private static BasicPasswordEncryptor passenc; public encrypt() { passenc=new BasicPasswordEncryptor(); } public static void useradd() { System.out.println("IN Useradd"); } when…
DanMatlin
  • 1,080
  • 4
  • 17
  • 34
6
votes
1 answer

Jasypt CLI error Operation not possible (Bad input or parameters)

I'm running into an issue identical to Command line Jasypt client encryption 'Operation not possible' however that post is for a much older version of Java. I've checked the path listed for java (in java_home below) and see the…
Aaron Baxter
  • 187
  • 13
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
  • 336
  • 1
  • 11
6
votes
3 answers

How to easily encrypt and decrypt a String using Tink?

Until now, I was using jasypt to encrypt a string before storing it on disk on app closing, and later when opening the app for decrypt the string after retrieving it from disk. It was super easy with jasypt, this was the code: private static final…
NullPointerException
  • 32,153
  • 66
  • 194
  • 346
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,143
  • 5
  • 16
  • 10
1
2 3
22 23