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
                    
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="Benten.PassCode" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Benten.PassCode" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Benten.PassCode" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Benten.PassCode --version 1.0.0
                    
#r "nuget: Benten.PassCode, 1.0.0"
                    
#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.
#:package Benten.PassCode@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Benten.PassCode&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Benten.PassCode&version=1.0.0
                    
Install as a Cake Tool

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 clientSpecific value always produce the same passcode.
  • PassCodeGenerator holds a native handle. Dispose it when you're done, for example with using.
  • The Uuid struct (Uuid.Parse, Uuid.NewUuid) is available if you need to work with UUIDs as values.
  • 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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