Using Jasypt for password based AES encryption with PBKDF2WithHmacSHA1 key
问题 I'm implementing an encryption mechanism where I work, and the security guy's demands are as follows: Create a 256 bit key using PBKDF2WithHmacSHA512, secret password, 256bit salt and 20000 iterations minimum. Salt should be generated using SecureRandom.getInstance("SHA1PRNG"); Encrypt using AES256 with the derived key. I'm trying to use Jasypt's StandardPBEStringEncryptor class encryptor.setPassword(PASSWORD); encryptor.setAlgorithm("AES/CBC/PKCS5Padding"); encryptor