Class StrongTextEncryptor

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

public final class StrongTextEncryptor extends Object implements TextEncryptor

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

This class internally holds a StandardPBEStringEncryptor configured this way:

  • Algorithm: PBEWithMD5AndTripleDES.
  • 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.

To use this class, you may need to download and install the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files.

This class is thread-safe.

Since:
1.2 (class existed in org.jasypt.util package since 1.0)
  • Field Details

  • Constructor Details

    • StrongTextEncryptor

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