Skip to content

Instantly share code, notes, and snippets.

@stimms
Created August 13, 2014 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stimms/9e7681d3fc3783205947 to your computer and use it in GitHub Desktop.
Save stimms/9e7681d3fc3783205947 to your computer and use it in GitHub Desktop.
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