OtpCore 1.1.0-dev-46

This is a prerelease version of OtpCore.
There is a newer version of this package available.
See the version list below for details.
dotnet add package OtpCore --version 1.1.0-dev-46                
NuGet\Install-Package OtpCore -Version 1.1.0-dev-46                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OtpCore" Version="1.1.0-dev-46" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OtpCore --version 1.1.0-dev-46                
#r "nuget: OtpCore, 1.1.0-dev-46"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install OtpCore as a Cake Addin
#addin nuget:?package=OtpCore&version=1.1.0-dev-46&prerelease

// Install OtpCore as a Cake Tool
#tool nuget:?package=OtpCore&version=1.1.0-dev-46&prerelease                

HOTP and TOTP implementation in C# targeting .NET standard 2.0, compliant with RFC 4226 (HOTP) and
RFC 6238 (TOTP) and verified against supplied test vectors. The interface includes support for
multiple algorithms (HMAC-SHA1, HMAC-SHA256, HMAC-SHA384, and HMAC-SHA512), code lengths (6 - 10),
and an adjustable period, or time step, (1 second - 1 hour) for TOTP.

The reason for creating this library was to fetch multiple HOTP counters or a TOTP time range in
a single call.

A parser for OTP Auth URIs is also included that conforms to the documentation found at:
https://github.com/google/google-authenticator/wiki/Key-Uri-Format.

This implementation also includes a Base32 encoder and decoder. It is compliant with RFC 4648,
using the standard alphabet from section 6, and has been tested against the test vectors from
section 10.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.0-dev-78 82 10/3/2024
1.2.0-dev-72 79 10/3/2024
1.2.0-dev-70 78 10/3/2024
1.2.0-dev-67 186 7/5/2023
1.2.0-dev-66 198 1/24/2023
1.2.0-dev-65 195 1/24/2023
1.2.0-dev-64 181 1/24/2023
1.2.0-dev-58 186 1/24/2023
1.1.4 230 10/3/2024
1.1.2 2,689 1/24/2023
1.1.1 370 1/23/2023
1.1.0 397 1/17/2023
1.1.0-dev-54 181 1/23/2023
1.1.0-dev-52 179 1/23/2023
1.1.0-dev-48 204 1/17/2023
1.1.0-dev-46 178 1/17/2023
1.1.0-dev-44 187 1/17/2023
1.1.0-dev-40 198 1/16/2023
1.1.0-dev-32 215 8/18/2022
1.1.0-dev-28 197 8/18/2022
1.1.0-dev-24 189 8/17/2022
1.1.0-dev-22 207 7/30/2022
1.0.3 526 8/18/2022
1.0.2 480 8/17/2022
1.0.1 508 7/30/2022
1.0.1-dev-17 224 7/30/2022
1.0.0 515 7/29/2022
0.9.0-dev-9 203 7/29/2022
0.9.0-dev-8 199 7/29/2022
0.9.0-dev-7 189 7/29/2022
0.9.0-dev-6 208 7/28/2022
0.9.0-dev-14 220 7/29/2022
0.9.0-dev-13 210 7/29/2022
0.9.0-dev-12 207 7/29/2022
0.9.0-dev-11 205 7/29/2022
0.9.0-dev-10 211 7/29/2022

- Initial release of library with HOTP and TOTP
- Added support for authenticators in key URI format
- Added getters for non-secret properties from authenticator object
- Fetch multiple codes with one call