implement cred passhash.