C# SDK
.NET / WinForms / Console · LibreAuth native client · Protocol v2 available (Enterprise)
C#
.NET / WinForms / Console
Setup Guide
Copy LibreAuthV2.cs + OpsEnvelope.cs · OpsBridge.cs + OpsExecutor.cs + Hardening.cs · ProcessCheckOpsAsync after Check · full Windows ops parity · NuGet NSec.Cryptography (define NSEC) + BouncyCastle.Cryptography (AEAD iv16) · /api/v2/
- Credentials: name + ownerid (10 characters)
- API URL:
https://libreauth.nutexe.dev/api/1.3/ - Source:
csharp/LibreAuth.cs - Ed25519 key: from
init→ Response Signing - Test: Live API · Init docs
Install / Dependencies
Terminal
dotnet add package Newtonsoft.Json
// 1.x: sdk/csharp/LibreAuth.cs
// v2 Enterprise: sdk/csharp/LibreAuthV2.cs + OpsEnvelope.cs (define NSEC)
Code Example
C#
using LibreAuth.Sdk.V2;
var app = new LibreAuthV2("AppName", "OWNER_ID_10", "https://host/api/v2/");
await app.InitAsync();
var info = await app.LoginAsync("user", "pass", "HWID");
Protocol v2 (Enterprise)
INFO
Requires Enterprise plan. Endpoint
https://libreauth.nutexe.dev/api/v2/. Guide: API Protocol v2.Source: csharp/LibreAuthV2.cs
C# · v2
using LibreAuth.Sdk.V2;
var app = new LibreAuthV2("AppName", "OWNER_ID_10", "https://host/api/v2/");
await app.InitAsync();
var info = await app.LoginAsync("user", "pass", "HWID");
More Links
- ← All Client SDKs
- 1.x source: View LibreAuth.cs
- Protocol v2: View LibreAuthV2.cs · docs
- Interactive API docs
- Response Signing