Class BasicIntegerNumberEncryptor

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

public final class BasicIntegerNumberEncryptor 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: 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(BigInteger) or decrypt(BigInteger) operations.

This class is thread-safe.

Since:
1.2
Author:
Daniel Fernández