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
32
votes
6 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
  • 35,919
  • 68
  • 173
  • 214
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,862
  • 8
  • 43
  • 58
15
votes
6 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…
Arun Kumar
  • 6,534
  • 13
  • 40
  • 67
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
  • 118,862
  • 56
  • 287
  • 383
12
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,699
  • 4
  • 19
  • 38
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
  • 997
  • 4
  • 14
  • 24
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,935
  • 2
  • 32
  • 48
11
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,579
  • 7
  • 67
  • 92
11
votes
3 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,303
  • 5
  • 31
  • 53
9
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…
Beeker
  • 383
  • 4
  • 20
9
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
  • 36,107
  • 79
  • 222
  • 382
8
votes
3 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
  • 105
  • 1
  • 5
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
  • 4
  • 11
7
votes
3 answers

Using encrypted password for database connection in spring boot application through spring auto configuration

Trying to use encrypted database password to connect to database using spring auto configuration I am using Spring auto configuration to connect to database. For that i added below properties in properties file:…
Ankit
  • 297
  • 1
  • 4
  • 15
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,212
  • 7
  • 19
  • 37
1
2 3
24 25