Spring EnableEncryptableProperties with Jasypt

Introduction Spring EnableEncryptableProperties with Jasypt shows an example how to avoid putting clear text password for database connection’s credentials in properties file. Jasypt means Java simplified encryption. Here we are going to use Spring Boot with Jasypt (Java simplified encryption). Here we are also going to use Spring Data JPA to perform the data layer activities with database. If you put clear text password in properties file then everybody including people, who should not see password, would gain access to your database and may change database table values, table structure…

Continue

Encryption and decryption using RSA in java

Introduction RSA is a cryptosystem, which is known as one of the first practicable public-key cryptosystems and is widely used for secure data transmission. In such a cryptosystem, the encryption key is public and differs from the decryption key which is kept secret. In RSA, this asymmetry is based on the practical difficulty of factoring the product of two large prime numbers – the factoring problem. RSA stands for Ron Rivest, Adi Shamir and Leonard Adleman, who first publicly described the algorithm in 1977. For more information on RSA, refer…

Continue