Skip to content

Instantly share code, notes, and snippets.

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 kyrathasoft/bfc7a7336fe217d4c0f55cd1134820aa to your computer and use it in GitHub Desktop.
Save kyrathasoft/bfc7a7336fe217d4c0f55cd1134820aa to your computer and use it in GitHub Desktop.
str2hash.cs
using System;
using GetHashNs; //found in gethash.cs
namespace SnippetNamespace {
public class SnippetClass {
static void Main(string[] args){
string p = "Bryan Miller";
Console.WriteLine("\n The SHA1 hash of {0} follows:", p);
Console.WriteLine("\t{0}", GetHashCls.GetSHA1(p));
Console.WriteLine("\n The MD5 hash of {0} follows:", p);
Console.WriteLine("\t{0}", GetHashCls.GetMD5(p));
Console.WriteLine();
Console.Write(" Press any key to exit program... ");
Console.ReadKey();
Console.Clear();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment