aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.HashGenerator
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2018-06-24 00:27:33 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2018-06-24 00:27:33 +0300
commitc6b1a719bac638a647dc2e4af51ad888c9f5039d (patch)
treeccc1427e68ed3f66ad1de01c173afa6ef6ae1f64 /Software/Visual_Studio/Utilities/Tango.HashGenerator
parent55c624cfa11e1c7998e5d3de0721aeee0814ce33 (diff)
downloadTango-c6b1a719bac638a647dc2e4af51ad888c9f5039d.tar.gz
Tango-c6b1a719bac638a647dc2e4af51ad888c9f5039d.zip
Implemented password hashing !
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.HashGenerator')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.HashGenerator/App.config6
-rw-r--r--Software/Visual_Studio/Utilities/Tango.HashGenerator/Program.cs28
-rw-r--r--Software/Visual_Studio/Utilities/Tango.HashGenerator/Properties/AssemblyInfo.cs36
-rw-r--r--Software/Visual_Studio/Utilities/Tango.HashGenerator/Tango.HashGenerator.csproj58
4 files changed, 128 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.HashGenerator/App.config b/Software/Visual_Studio/Utilities/Tango.HashGenerator/App.config
new file mode 100644
index 000000000..8324aa6ff
--- /dev/null
+++ b/Software/Visual_Studio/Utilities/Tango.HashGenerator/App.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
+ </startup>
+</configuration> \ No newline at end of file
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));
+ }
+ }
+ }
+}
diff --git a/Software/Visual_Studio/Utilities/Tango.HashGenerator/Properties/AssemblyInfo.cs b/Software/Visual_Studio/Utilities/Tango.HashGenerator/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000..f3cdb1807
--- /dev/null
+++ b/Software/Visual_Studio/Utilities/Tango.HashGenerator/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Tango.HashGenerator")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Tango.HashGenerator")]
+[assembly: AssemblyCopyright("Copyright © 2018")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("0440a135-0df0-4232-ab3c-98b9283123b3")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Software/Visual_Studio/Utilities/Tango.HashGenerator/Tango.HashGenerator.csproj b/Software/Visual_Studio/Utilities/Tango.HashGenerator/Tango.HashGenerator.csproj
new file mode 100644
index 000000000..cee8566a7
--- /dev/null
+++ b/Software/Visual_Studio/Utilities/Tango.HashGenerator/Tango.HashGenerator.csproj
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{0440A135-0DF0-4232-AB3C-98B9283123B3}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <RootNamespace>Tango.HashGenerator</RootNamespace>
+ <AssemblyName>Tango.HashGenerator</AssemblyName>
+ <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Net.Http" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="App.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\Tango.Core\Tango.Core.csproj">
+ <Project>{a34ee0f0-649d-41c8-8489-b6f1cc6924ee}</Project>
+ <Name>Tango.Core</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project> \ No newline at end of file