Common interface for all util classes aimed at password encryption.
- Daniel Fernández Garrido
Encrypts (digests) a password.
password the password to be encrypted.
- the resulting digest.
Checks an unencrypted (plain) password against an encrypted one
(a digest) to see if they match.
plainPassword the plain password to check.
encryptedPassword the digest against which to check the password.
- true if passwords match, false if not.