support alternative hashes for authentication