Created
May 17, 2021 00:58
-
-
Save kyrathasoft/bfc7a7336fe217d4c0f55cd1134820aa to your computer and use it in GitHub Desktop.
str2hash.cs
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
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