![]() |
VOOZH | about |
dotnet add package DotNetBrightener.TimeBasedOtp --version 2026.0.2
NuGet\Install-Package DotNetBrightener.TimeBasedOtp -Version 2026.0.2
<PackageReference Include="DotNetBrightener.TimeBasedOtp" Version="2026.0.2" />
<PackageVersion Include="DotNetBrightener.TimeBasedOtp" Version="2026.0.2" />Directory.Packages.props
<PackageReference Include="DotNetBrightener.TimeBasedOtp" />Project file
paket add DotNetBrightener.TimeBasedOtp --version 2026.0.2
#r "nuget: DotNetBrightener.TimeBasedOtp, 2026.0.2"
#:package DotNetBrightener.TimeBasedOtp@2026.0.2
#addin nuget:?package=DotNetBrightener.TimeBasedOtp&version=2026.0.2Install as a Cake Addin
#tool nuget:?package=DotNetBrightener.TimeBasedOtp&version=2026.0.2Install as a Cake Tool
Copyright © 2017 - 2026 Vampire Coder (formerly DotnetBrightener)
Run this in command line:
dotnet add package DotNetBrightener.TimeBasedOtp
Or add the following to .csproj file
<PackageReference Include="DotNetBrightener.TimeBasedOtp" Version="2022.10.0" />
You should check the latest version from Nuget Site
serviceCollection.AddOtpProvider();
// inject the service
IOTPProvider otpProvider;
// generate a secret
var secret = "<some random string>";
// define the length of the password to generate
var passwordLength = 6;
// indicates whether the secret's spaces matter or not.
var ignoreSpaces = false; // false: Spaces matter. true: Spaces don't matter
var otp = otpProvider.GetPassword(secret, passwordLength, ignoreSpaces);
// the adjacent intervals to check for the OTP. The greater this value is, the higher risk of being hijacked.
var checkAdjacentIntervals = 2;
var isOtpValid = otpProvider.ValidateOTP(otp, secret, ignoreSpaces, checkAdjacentIntervals;
The secret should be stored securely within your application.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on DotNetBrightener.TimeBasedOtp:
| Package | Downloads |
|---|---|
|
DotNetBrightener.NotificationService
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.0.3-preview-777 | 152 | 5/20/2026 |
| 2026.0.3-preview-773 | 146 | 4/24/2026 |
| 2026.0.3-preview-772 | 154 | 4/3/2026 |
| 2026.0.3-preview-770 | 140 | 4/2/2026 |
| 2026.0.3-preview-769 | 128 | 4/2/2026 |
| 2026.0.2 | 156 | 4/2/2026 |
| 2026.0.2-preview-v2026-0-1-755 | 142 | 3/27/2026 |
| 2026.0.2-preview-759 | 137 | 4/1/2026 |
| 2026.0.2-preview-758 | 135 | 3/29/2026 |
| 2026.0.2-preview-757 | 135 | 3/29/2026 |
| 2026.0.2-preview-756 | 138 | 3/27/2026 |
| 2026.0.2-preview-754 | 123 | 3/27/2026 |
| 2026.0.1 | 142 | 3/27/2026 |
| 2026.0.1-preview-752 | 130 | 3/26/2026 |
| 2026.0.1-preview-750 | 131 | 3/26/2026 |
| 2026.0.1-preview-749 | 131 | 3/25/2026 |
| 2025.0.11-preview-776 | 89 | 5/20/2026 |
| 2025.0.11-preview-771 | 102 | 4/2/2026 |
| 2025.0.11-preview-768 | 98 | 4/2/2026 |
| 2025.0.11-preview-762 | 100 | 4/2/2026 |