Class BasicDecimalNumberEncryptor

java.lang.Object
org.jasypt.util.numeric.BasicDecimalNumberEncryptor
All Implemented Interfaces:
DecimalNumberEncryptor

public final class BasicDecimalNumberEncryptor extends Object implements DecimalNumberEncryptor

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

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

This class is thread-safe.

Since:
1.2