Java Simplified Encryption with own Encryption algorithm

132 Views Asked by At

I see that many using jasypt to encrypt the application.properties file in spring boot. Can I use my own algorithm for that? If yes then can you show me how, thanks.

1

There are 1 best solutions below

0
Attila T On

From the Jasypt FAQ:

Jasypt by itself does not implement nor distribute in any of its forms any cryptographic algorithms. It simply uses the algorithms already present in the users' Java installations via the Java Cryptography Extension.

Here is a link to the official Java 9 documentation about How to Implement a Provider in the Java Cryptography Architecture and another link to an example of Building a custom Java Crypto Provider.