Given a secret, determine if it matches a previously hashed secret. This method will perform hashing of the
input secret to determine if it is the same value as a previously hashed secret.
Parameters
input - The secret to be validated
expected - The previously hashed secret to check against