Class AES256IntegerNumberEncryptor

Object
org.jasypt.util.numeric.AES256IntegerNumberEncryptor
All Implemented Interfaces:
IntegerNumberEncryptor

public final class AES256IntegerNumberEncryptor extends Object implements IntegerNumberEncryptor

Utility class for easily performing normal-strength encryption of BigInteger objects.

This class internally holds a StandardPBEBigIntegerEncryptor configured this way:

  • Algorithm: PBEWithHMACSHA512AndAES_256.
  • Key obtention iterations: 1000.

The required steps to use it are:

  1. Create an instance (using new).
  2. Set a password (using setPassword(String) or setPasswordCharArray(char[])).
  3. Perform the desired encrypt(BigInteger) or decrypt(BigInteger) operations.

This class is thread-safe.

Since:
1.9.3
Author:
Hoki Torres