OtpSharp 1.3.0.2
dotnet add package OtpSharp --version 1.3.0.2
NuGet\Install-Package OtpSharp -Version 1.3.0.2
<PackageReference Include="OtpSharp" Version="1.3.0.2" />
paket add OtpSharp --version 1.3.0.2
#r "nuget: OtpSharp, 1.3.0.2"
// Install OtpSharp as a Cake Addin #addin nuget:?package=OtpSharp&version=1.3.0.2 // Install OtpSharp as a Cake Tool #tool nuget:?package=OtpSharp&version=1.3.0.2
This is an implementation of HOTP and TOTP which are commonly used for multi factor authentication by using a shared key between the client and the server to generate and verify one time use codes. This library is capable of generating and verifying both TOTP and HOTP authentication codes. The calculations in this library are known to be compatible with Google 2-Step Verification and consequently the Google Authenticator smartphone app. It is also known to be able to generate codes for Amazon Web Services Multi Factor Authentication and Dropbox 2 step authentication. It should work with any other service or client that is RFC compliant.
This library is released under an MIT license. No warranty is provided as to the correctness of the library and the consumer of the library assumes all risk for the use thereof, as per the MIT license.
Every effort has gone into implementing this library in accordance with the RFCs mentioned above. However it is up to the users of this library to read through the RFCs and ensure that this implementation is in accordance with the security procedures outlined therein.
The implementation includes the code calculation as well as simple verification. Persistence of the keys, secure key storage, ensuring that a single code can't be validated multiple times and other things are not a part of this library. Thus far those functions (and any others mentioned in the RFCs) are up to the consumer of this library.
For documentation please visit the project website.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Base32 (>= 1.0.0.12)
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.3.0.2 | 1,668 | 1/17/2015 |
1.2.6.28 | 1,319 | 7/13/2014 |
1.2.6.27 | 65 | 7/12/2014 |
1.2.6.22 | 457 | 10/25/2013 |
1.2.6.21 | 79 | 8/9/2013 |
1.2.6.20 | 80 | 7/29/2013 |
1.1.6.7 | 60 | 3/12/2013 |
1.1.6.6 | 50 | 3/12/2013 |
1.1.6.5 | 50 | 3/12/2013 |
1.0.6.1 | 48 | 3/11/2013 |
1.0.5.5 | 51 | 3/8/2013 |
1.0.5.4 | 50 | 3/2/2013 |
1.0.5 | 78 | 3/1/2013 |
1.3 Sign the assembly
1.2 extract base32 functionality into seperate nuget package (Base32). Implement FromUrl functionality
1.1 Change the Key api to no longer require returning the plaintext key. (will break any custom key implementations). Move the get URL from the Otp to a static Url type.
1.0.6 Change the computed values from ints to padded strings. (Breaking change but is a more appropriate API)
1.0.5 Change package name from OTP-Sharp to OtpSharp
1.0.4 Changed the Protected Key API to be more explicit (may break existing direct useage of the protected key)
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.