# SDK & Code Examples

---
title: "SDK & Code Examples Hub"
description: "Official AuthVaultix starter templates, multi-language wrappers, sample projects, and developer integration guides."
---


# Multi-Language Integration Templates

AuthVaultix provides official, production-ready SDKs and open-source example projects for popular programming languages. Each wrapper includes built-in HMAC-SHA256 response signature verification, anti-replay nonce handling, and automatic Hardware ID (HWID) generation.

---

> [!TIP]
> **Instant Testing Credentials:** You can immediately test any template using our public demo application credentials:
> - **App Name:** `DemoApp`
> - **Owner ID:** `owner_id`
> - **App Secret:** `app_secret`
> - **Version:** `1.0`

---

# 🚀 Quick Integration Workflow

Every AuthVaultix example follows a zero-trust cryptographic lifecycle to prevent client-side tampering and response spoofing:

```mermaid
sequenceDiagram
    autonumber
    participant App as Client Application
    participant SDK as AuthVaultix SDK
    participant API as AuthVaultix Cloud API

    App->>SDK: Initialize (App Name, Owner ID, Secret, GUID)
    SDK->>API: POST /api/1.0/ (init request + GUID)
    API-->>SDK: Signed JSON Response + Signature Header
    SDK->>SDK: Verify HMAC-SHA256 Signature (SignKey)
    alt Signature Valid
        SDK-->>App: Initialization Successful (Session ID)
        App->>SDK: Login / License Authenticate
        SDK->>API: POST /api/1.0/ (login + sessionid)
        API-->>SDK: Signed Response (User Data / Subscriptions)
        SDK->>SDK: Verify HMAC-SHA256 (SessionKey)
        SDK-->>App: Access Granted
    else Signature Invalid / MITM Detected
        SDK-->>App: Security Violation (Terminate Execution)
    end
```

---

# 📂 Official Repository Directory

Select your preferred language or framework to access the GitHub repository containing source code, build scripts, and documentation:

<CardGroup cols={2}>
  <Card title="C++ (Native Win32 / x64)" icon="code" href="https://github.com/AuthVaultix/AuthVaultix-CPP-Example">
    High-performance native C++ SDK with libcurl, OpenSSL HMAC verification, anti-debugging integration, and CMake support.
  </Card>
  <Card title="C# (.NET 6 / 7 / 8 & Framework)" icon="hashtag" href="https://github.com/AuthVaultix/AuthVaultix-CSHARP-Example">
    Asynchronous C# wrapper with WinForms/WPF login GUI, automatic HWID locking, and secure file streaming.
  </Card>
  <Card title="Python (3.8+ CLI & PySide)" icon="python" href="https://github.com/AuthVaultix/AuthVaultix-Python-Example">
    Clean Python 3 wrapper featuring `requests` and `hashlib` HMAC validation, CLI menu, and PyArmor protection guide.
  </Card>
  <Card title="Rust (Cargo & Tokio Async)" icon="gear" href="https://github.com/AuthVaultix/AuthVaultix-Rust-Example">
    Memory-safe, high-concurrency Rust crate using `reqwest` and `ring` cryptographic signature checks.
  </Card>
  <Card title="Go (Golang)" icon="terminal" href="https://github.com/AuthVaultix/AuthVaultix-Go-Example">
    Lightweight, single-binary Go module for cross-platform tools, backend microservices, and CLI utilities.
  </Card>
  <Card title="Java & Kotlin (JVM)" icon="java" href="https://github.com/AuthVaultix/AuthVaultix-Java-Example">
    JVM wrapper supporting Java 11+ and Kotlin for desktop software and cross-platform Java applications.
  </Card>
  <Card title="JavaScript / Node.js & Electron" icon="js" href="https://github.com/AuthVaultix/AuthVaultix-JS-Example">
    Secure Node.js & Electron starter kit with isolated main/renderer IPC communication and Web Crypto API.
  </Card>
  <Card title="PHP (SaaS & Web Integration)" icon="php" href="https://github.com/AuthVaultix/AuthVaultix-PHP-Example">
    Server-side PHP class for web application licensing, reseller panels, and custom customer portals.
  </Card>
  <Card title="Lua (FiveM / GMod / Scripting)" icon="file-code" href="https://github.com/AuthVaultix/AuthVaultix-Lua-Example">
    Lightweight Lua authorization module tailored for game server scripts, loaders, and embedded runtimes.
  </Card>
  <Card title="VB.NET (Visual Basic)" icon="windows" href="https://github.com/AuthVaultix/AuthVaultix-VBNET-Example">
    Visual Basic .NET implementation for legacy desktop applications with ready-made login UI.
  </Card>
  <Card title="Android (Kotlin / Mobile SDK)" icon="mobile" href="https://github.com/AuthVaultix/AuthVaultix-Android-Example">
    Android client SDK featuring hardware SID generation, encrypted local caching, and mobile license validation.
  </Card>
</CardGroup>

---

# 📊 SDK Capabilities Matrix

All official wrappers implement core AuthVaultix security standards alongside language-specific performance enhancements:

| Language / SDK | HMAC-SHA256 Response Signing | Auto Nonce Verification | HWID SID Locking | Remote Variable Caching | Secure File Streamer | Native Anti-Debug Guard |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: |
| **C++ (Native)** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ (RebirthGuard) |
| **C# (.NET)** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **Python** | ✅ | ✅ | ✅ | ✅ | ✅ | ⚠️ (Requires PyArmor) |
| **Rust** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| **Go** | ✅ | ✅ | ✅ | ✅ | ✅ | ⚠️ (Basic Checks) |
| **Java / Kotlin** | ✅ | ✅ | ✅ | ✅ | ✅ | ⚠️ |
| **Node.js / Electron**| ✅ | ✅ | ✅ | ✅ | ✅ | ⚠️ (Requires Bytenode) |
| **PHP** | ✅ | ✅ | N/A (Server) | ✅ | ✅ | N/A |

---

# 🛡️ Developer Production Checklist

Before releasing to end users, complete these security hardening steps:

> [!IMPORTANT]
> **Client Binary Obfuscation:** AuthVaultix protects network payloads and server authentication logic. Protecting local memory and binary code is your responsibility using binary protectors:
> - **C / C++:** Protect compiled binaries with [VMProtect](https://vmpsoft.com) or [Themida](https://www.oreans.com).
> - **C# (.NET):** Obfuscate assemblies using **ConfuserEx**, **.NET Reactor**, or **Eazfuscator.NET**.
> - **Python:** Compile scripts to C extensions via **Nuitka** or encrypt bytecode with **PyArmor**.
> - **Node.js / Electron:** Protect renderer/main bundles with **Bytenode** or **JavaScript Obfuscator**.

1. **Enable SSL Certificate Pinning:** Strictly restrict server connections to `authvaultix.com` SSL certificates to neutralize local MITM proxy tools (Fiddler, Charles Proxy, HTTP Toolkit).
2. **Scatter Authentication Calls:** Do not isolate authentication logic inside a single `if (login)` block at startup. Call `app.check_session()` periodically in background threads during execution.
3. **Store Secrets Remotely:** Never embed backend API keys, third-party database passwords, or sensitive URLs in the binary. Store them in AuthVaultix **Global Variables** or **User Variables** instead of hardcoding them in the binary.

---

# 🤝 Community SDKs & Contributions

Are you building an SDK wrapper for a programming language not listed above? We welcome community contributions!

- **Guidelines:** See our [SDK Specification Guide](file:///c:/Users/royal/Desktop/docs.authvaultix/4-client-api/overview-and-signing.md) to ensure your implementation complies with HMAC-SHA256 signing standards, nonce validation, and GUID key generation.
- **Submit a Repo:** Open a pull request or contact developer support to have your repository featured in the official AuthVaultix documentation matrix.
