Class BasicTextEncryptor

Object
org.jasypt.util.text.BasicTextEncryptor
All Implemented Interfaces:
TextEncryptor

public final class BasicTextEncryptor extends Object implements TextEncryptor

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

This class internally holds a StandardPBEStringEncryptor configured this way:

  • Algorithm: PBEWithMD5AndDES.
  • 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.2 (class existed as org.jasypt.util.TextEncryptor since 1.0)
Author:
Daniel Fernández
  • Constructor Details

    • BasicTextEncryptor

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