public class Encrypter
extends Object
A simple class for encrypting and decrypting an arbitrary bit of text
- Uses AES/GCM mode
- Accepts a password, will generate a salt, derive a key using PBKDF2WithHmacSHA1, and append the salt to the output
- returns the encrypted text in base32 format
- Uses 128 big key length
I would have greatly preferred just to use the Spring Crypto Library, but unfortunately that uses 256-bit keys,
which means the Ulimited Crypto libraries need to be installed, which makes using Stallion out of the box more
painful.