Class StrongPasswordEncryptor

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

public final class StrongPasswordEncryptor extends Object implements PasswordEncryptor

Utility class for easily performing high-strength password digesting and checking.

This class internally holds a StandardStringDigester configured this way:

  • Algorithm: SHA-256.
  • Salt size: 16 bytes.
  • Iterations: 100000.

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 in org.jasypt.util package since 1.1)
Author:
Daniel Fernández
  • Constructor Details

    • StrongPasswordEncryptor

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