Support multiple hashing algorithms