aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.HashGenerator/Program.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-06-24 09:49:45 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-24 09:49:45 +0300
commit5095a1dd5f65a7659083cae6dfccb34007720ee9 (patch)
tree62b46d5b437c0d9236827ec46357dd1b1b18c946 /Software/Visual_Studio/Utilities/Tango.HashGenerator/Program.cs
parent121c706c24da22e48b0e4d4dacc7ade8fef757bb (diff)
parentc6b1a719bac638a647dc2e4af51ad888c9f5039d (diff)
downloadTango-5095a1dd5f65a7659083cae6dfccb34007720ee9.tar.gz
Tango-5095a1dd5f65a7659083cae6dfccb34007720ee9.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.HashGenerator/Program.cs')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.HashGenerator/Program.cs28
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));
+ }
+ }
+ }
+}