Benten.PassCode
1.0.0
Prefix Reserved
dotnet add package Benten.PassCode --version 1.0.0
NuGet\Install-Package Benten.PassCode -Version 1.0.0
<PackageReference Include="Benten.PassCode" Version="1.0.0" />
<PackageVersion Include="Benten.PassCode" Version="1.0.0" />
<PackageReference Include="Benten.PassCode" />
paket add Benten.PassCode --version 1.0.0
#r "nuget: Benten.PassCode, 1.0.0"
#:package Benten.PassCode@1.0.0
#addin nuget:?package=Benten.PassCode&version=1.0.0
#tool nuget:?package=Benten.PassCode&version=1.0.0
Benten.PassCode
Benten's native passcode engine for .NET, part of the Benten Authentication and Authorization Platform.
The package contains a small .NET wrapper and prebuilt native binaries for every supported platform, so there's nothing to compile. The native source code is not published.
Supported platforms
| Target framework | Platforms | Native library |
|---|---|---|
net8.0 |
Windows x64 | libBentenCore.dll |
net9.0-android35.0 |
Android arm64-v8a, armeabi-v7a, x86, x86_64 | libBentenCore.so |
net9.0-ios18.0 |
iOS devices (arm64) and iOS Simulator (arm64, x86_64) | BentenCore.xcframework, linked automatically |
Windows apps must run as x64. Linux and macOS aren't supported yet: the package installs, but calls fail with a DllNotFoundException.
Install
dotnet add package Benten.PassCode
Usage
using Benten.PassCode;
using var generator = new PassCodeGenerator();
string deviceId = "3f2504e0-4f89-11d3-9a0c-0305e82c3301"; // a UUID string
int clientSpecific = 42;
// Generate a passcode
string passcode = generator.Generate(deviceId, clientSpecific);
// Check a passcode
bool isValid = generator.IsValid(deviceId, clientSpecific, passcode);
- The same UUID and
clientSpecificvalue always produce the same passcode. PassCodeGeneratorholds a native handle. Dispose it when you're done, for example withusing.- The
Uuidstruct (Uuid.Parse,Uuid.NewUuid) is available if you need to work with UUIDs as values.
Related packages
- Benten.SDK: the open-source .NET client for requesting user approval (logins, payments, IoT changes and custom actions). See the Benten SDK page.
License
Proprietary. See LICENSE.txt in this package. The package is free to use for integrating with the Benten platform.
Support
Email support@bententechnologies.com or visit bententechnologies.com.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-android35.0 is compatible. net9.0-browser was computed. net9.0-ios was computed. net9.0-ios18.0 is compatible. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
-
net9.0-android35.0
- No dependencies.
-
net9.0-ios18.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.0.0 | 139 | 10/3/2026 |