LibreAuth

Rust SDK

Rust 2021 · LibreAuth native client · Protocol v2 available (Enterprise)

Rust Rust 2021
POST https://libreauth.nutexe.dev/api/1.3/

Setup Guide

LibreAuthV2 · process_check_ops after check · ops_executor + hardening · full Windows ops parity · aes-gcm nonce 16 · ForceAdopt · /api/v2/

  1. Credentials: name + ownerid (10 characters)
  2. API URL: https://libreauth.nutexe.dev/api/1.3/
  3. Source: rust/src/lib.rs
  4. Ed25519 key: from initResponse Signing
  5. Test: Live API · Init docs

Install / Dependencies

Terminal
cargo add reqwest serde_json hmac hex rand sha2
# v2: sdk/rust/src/v2.rs · inject verify_sig

Code Example

Rust
let mut app = LibreAuthV2::new("AppName", "OWNER_ID_10", "https://host/api/v2/", "");
app.init()?;
app.login("user", "pass", "HWID")?;

Protocol v2 (Enterprise)

INFO
Requires Enterprise plan. Endpoint https://libreauth.nutexe.dev/api/v2/. Guide: API Protocol v2.

Source: rust/src/v2.rs

Rust · v2
let mut app = LibreAuthV2::new("AppName", "OWNER_ID_10", "https://host/api/v2/", "");
app.init()?;
app.login("user", "pass", "HWID")?;