diff options
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.HashGenerator/Program.cs')
| -rw-r--r-- | Software/Visual_Studio/Utilities/Tango.HashGenerator/Program.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.HashGenerator/Program.cs b/Software/Visual_Studio/Utilities/Tango.HashGenerator/Program.cs new file mode 100644 index 000000000..7eb6e88b9 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.HashGenerator/Program.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Core.Cryptography; + +namespace Tango.HashGenerator +{ + class Program + { + static void Main(string[] args) + { + while (true) + { + Console.Write("Enter password to hash: "); + String password = Console.ReadLine(); + + if (password.ToLower() == "exit") return; + + IHashGenerator hash = new BasicHashGenerator(); + + Console.WriteLine(); + Console.WriteLine("Hash generated: " + hash.Encrypt(password)); + } + } + } +} |
