Hash a plain-text value.
The plain-text string to hash
A promise that resolves to the hashed string
Verify a plain-text value against a previously computed hash.
The plain-text candidate
The stored hash to compare against
A promise resolving to true if they match
Pluggable encryption adapter. Implement this interface to use any hashing library.