1. Devin Martin
  2. OTP-Sharp

Commits

Devin Martin  committed e6a0a66 Merge

Merged linqpad into default

  • Participants
  • Parent commits 1b6bd0f, d7f4f8a
  • Branches default

Comments (0)

Files changed (2)

File OtpSharp/OtpSharp.nuspec

View file
  • Ignore whitespace
 The protected key no longer implicitly causes side effects (destroying the plaintext key provided must be done explicitly)
 
 Added a time correction class with experimental NTP abilities.</releaseNotes>
-    <tags>authentication OATH totp otp hotp base32 multi-factor two-factor factor security login OATH-HOTP OATH-TOTP</tags>
+    <tags>authentication OATH totp otp hotp base32 multi-factor two-factor factor security login OATH-HOTP OATH-TOTP linqpad-samples</tags>
 	<dependencies>
 		<dependency id="Base32" version="1.0.0.12" />
 	</dependencies>
   </metadata>
+  <files>
+    <file src="linqpad-samples\**" target="linqpad-samples" />
+  </files>
 </package>

File OtpSharp/linqpad-samples/Basic Example.linq

View file
  • Ignore whitespace
+<Query Kind="Statements">
+  <NuGetReference>OtpSharp</NuGetReference>
+  <Namespace>OtpSharp</Namespace>
+</Query>
+
+var totp = (Totp)KeyUrl.FromUrl("otpauth://totp/test?secret=AEBAGBAFAYDQQCIAAEBAGBAFAYDQQCIAAEBAGBAFAYDQQCIA");
+totp.ComputeTotp().Dump("Timed One Time Password");