Created
August 13, 2014 20:50
-
-
Save stimms/9e7681d3fc3783205947 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public byte[] GetScriptHash(string script) | |
{ | |
SHA1 sha = new SHA1CryptoServiceProvider(); | |
return sha.ComputeHash(System.Text.Encoding.UTF8.GetBytes(script)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment