Class AES256TextEncryptor

java.lang.Object
org.jasypt.util.text.AES256TextEncryptor
All Implemented Interfaces:
TextEncryptor

public final class AES256TextEncryptor extends Object implements TextEncryptor

Utility class for easily performing high-strength encryption of texts.

This class internally holds a StandardPBEStringEncryptor 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(String) or decrypt(String) operations.

This class is thread-safe.

Since:
1.9.3
  • Field Details

  • Constructor Details

    • AES256TextEncryptor

      public AES256TextEncryptor()
      Creates a new instance of StrongTextEncryptor.
  • Method Details