Class BasicPasswordEncryptor

Object
org.jasypt.util.password.BasicPasswordEncryptor
All Implemented Interfaces:
PasswordEncryptor

public final class BasicPasswordEncryptor extends Object implements PasswordEncryptor

Utility class for easily performing password digesting and checking.

This class internally holds a StandardStringDigester configured this way:

  • Algorithm: MD5.
  • Salt size: 8 bytes.
  • Iterations: 1000.

The required steps to use it are:

  1. Create an instance (using new).
  2. Perform the desired encryptPassword(String) or checkPassword(String, String) operations.

This class is thread-safe

Since:
1.2 (class existed as org.jasypt.util.PasswordEncryptor since 1.0)
Author:
Daniel Fernández
  • Constructor Details

    • BasicPasswordEncryptor

      public BasicPasswordEncryptor()
      Creates a new instance of BasicPasswordEncryptor
  • Method Details