diff --git a/otpnettest/Program.cs b/otpnettest/Program.cs new file mode 100644 index 0000000..1ab090e --- /dev/null +++ b/otpnettest/Program.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using OTPNet; + +namespace otpnettest +{ + class Program + { + static void Main(string[] args) + { + TOTP t = new TOTP(args[0]); + Console.WriteLine("Your OTP = " + t.now().ToString("D6")); + } + } +} diff --git a/otpnettest/Properties/AssemblyInfo.cs b/otpnettest/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0cf6e35 --- /dev/null +++ b/otpnettest/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("otpnettest")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("otpnettest")] +[assembly: AssemblyCopyright("Copyright © 2013")] +[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("9b7c314e-7892-4cf6-8ca8-01ef7420f6a3")] + +// 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/otpnettest/otpnettest.csproj b/otpnettest/otpnettest.csproj new file mode 100644 index 0000000..5a1e00d --- /dev/null +++ b/otpnettest/otpnettest.csproj @@ -0,0 +1,60 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {7F244138-C2C0-4A59-894F-276F97A0029A} + Exe + Properties + otpnettest + otpnettest + v4.0 + Client + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\otpnet\bin\Debug\OTPNet.dll + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/otpnettest/otpnettest.sln b/otpnettest/otpnettest.sln new file mode 100644 index 0000000..a799c72 --- /dev/null +++ b/otpnettest/otpnettest.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "otpnettest", "otpnettest.csproj", "{7F244138-C2C0-4A59-894F-276F97A0029A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7F244138-C2C0-4A59-894F-276F97A0029A}.Debug|x86.ActiveCfg = Debug|x86 + {7F244138-C2C0-4A59-894F-276F97A0029A}.Debug|x86.Build.0 = Debug|x86 + {7F244138-C2C0-4A59-894F-276F97A0029A}.Release|x86.ActiveCfg = Release|x86 + {7F244138-C2C0-4A59-894F-276F97A0029A}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal