Encrypt String - Compute Hash Create hash from a string and confirm the hash There are two functions in Cryptography class. ComputeHash() function creates the has from the give string ConfirmHash() takes a string and hash and confirms the hash.