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

前端 未结 5 1301
执笔经年
执笔经年 2020-12-23 16:51

I am using Jasypt for encryption. This is my code:

public class Encryptor {    
    private final static StandardPBEStringEncryptor pbeEncryptor = new Standa         


        
5条回答
  •  情话喂你
    2020-12-23 17:34

    There is still a 'pending' question asked by Qwerky: why using Jasypt instead of using javax.crypto?

    Well, I would recommend using Jasypt as it is a simple way to crypto for beginners and highly configurable for experienced users.

    With Jasypt, you can start taking benefit of javax.crypto quickly with a little knowledge of JCE and the cryptography. Whether you want to manage user passwords or encrypt/decrypt data, the framework provides a simple abstraction to the question.

    In the same time, the framework exposes all the possibilities of the JCE specification to allow experienced users to be in full control.

    In addition to this, Jasypt provides many more features out-of-the-box for well known questions (dealing with sensitive data stored in the database, ...)

提交回复
热议问题