aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-12-06 14:25:46 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-12-06 14:25:46 +0200
commit5fad039079417e33aa87688ec228e975f2d3a00d (patch)
tree59160b833b7dafb7a2f53ef8279913701fdae37d /Software/Visual_Studio/Utilities
parent907aa0cd6c29c182d4647f8d2dab89750fd23bc9 (diff)
downloadTango-5fad039079417e33aa87688ec228e975f2d3a00d.tar.gz
Tango-5fad039079417e33aa87688ec228e975f2d3a00d.zip
Tango password hash generator.
Diffstat (limited to 'Software/Visual_Studio/Utilities')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/App.config6
-rw-r--r--Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/Program.cs31
-rw-r--r--Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/Properties/AssemblyInfo.cs36
-rw-r--r--Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/Tango.PasswordHashUtil.CLI.csproj60
4 files changed, 133 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/App.config b/Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/App.config
new file mode 100644
index 000000000..731f6de6c
--- /dev/null
+++ b/Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/App.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
+ </startup>
+</configuration> \ No newline at end of file
diff --git a/Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/Program.cs b/Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/Program.cs
new file mode 100644
index 000000000..bbb922a7c
--- /dev/null
+++ b/Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/Program.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Tango.PasswordHashUtil.CLI
+{
+ class Program
+ {
+ [STAThread]
+ static void Main(string[] args)
+ {
+ Core.Cryptography.IHashGenerator gen = new Core.Cryptography.BasicHashGenerator();
+
+ Console.WriteLine("Twine Password Generator.");
+
+ Start:
+ Console.WriteLine();
+ Console.Write("Enter Password: ");
+ String pass = Console.ReadLine();
+ String hash = gen.Encrypt(pass);
+ Clipboard.SetText(hash);
+ Console.Write($"Hash copied to clipboard...");
+ Console.ReadLine();
+
+ goto Start;
+ }
+ }
+}
diff --git a/Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/Properties/AssemblyInfo.cs b/Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000..0d06d05dc
--- /dev/null
+++ b/Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/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.PasswordHashUtil.CLI")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Tango.PasswordHashUtil.CLI")]
+[assembly: AssemblyCopyright("Copyright © 2020")]
+[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("f1dc98ef-c50a-4e84-9a39-211a68626fba")]
+
+// 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.PasswordHashUtil.CLI/Tango.PasswordHashUtil.CLI.csproj b/Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/Tango.PasswordHashUtil.CLI.csproj
new file mode 100644
index 000000000..f9eab2640
--- /dev/null
+++ b/Software/Visual_Studio/Utilities/Tango.PasswordHashUtil.CLI/Tango.PasswordHashUtil.CLI.csproj
@@ -0,0 +1,60 @@
+<?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>{F1DC98EF-C50A-4E84-9A39-211A68626FBA}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <RootNamespace>Tango.PasswordHashUtil.CLI</RootNamespace>
+ <AssemblyName>tango_pass_gen</AssemblyName>
+ <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+ <Deterministic>true</Deterministic>
+ </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.Windows.Forms" />
+ <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