public interface PasswordEncryptor
Common interface for all util classes aimed at password encryption.
Modifier and Type | Method and Description |
---|---|
boolean |
checkPassword(String plainPassword,
String encryptedPassword)
Checks an unencrypted (plain) password against an encrypted one
(a digest) to see if they match.
|
String |
encryptPassword(String password)
Encrypts (digests) a password.
|
String encryptPassword(String password)
password
- the password to be encrypted.boolean checkPassword(String plainPassword, String encryptedPassword)
plainPassword
- the plain password to check.encryptedPassword
- the digest against which to check the password.Copyright © 2019 The JASYPT team. All rights reserved.