expose GenerateHash