Seize SDKs, une seule surface canonique

Mêmes événements SIEM. Mêmes limites de parser. Mêmes vecteurs de test IETF. Mêmes variables d'environnement. Choisissez le langage ; le contrat est identique.

Cloner le dépôt

Voir sur GitLab
git clone https://gitlab.com/toontoolbox/toonwebtoken.git

SDKs backend (14)

Rust

Stable
implementations/rust/

Crate Rust de référence `toonwebtoken` 1.5.0 — double licence MIT/Apache-2.0. Benchmarks Criterion sous 30 ms. ML-DSA-65 réel via oqs 0.11.

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/rust
cargo build
Tests
110
Bench
9 (6 parser + 3 PQC)

Python

Stable
implementations/python/

SDK de référence avec 322 tests. Modules couvrant le durcissement (TWT-A), l'intégrité de configuration (TWT-C) et l'AuditTrail (TWT-D4). ML-DSA-65 réel via liboqs.

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/python
pip install -r requirements.txt
Tests
322
Bench
9 (6 parser + 3 PQC)

TypeScript / Node.js

Stable
implementations/javascript/

190 tests. ML-DSA-65 réel via @noble/post-quantum. Runner Jest, harness perf_hooks pour les benchmarks.

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/javascript
npm install
Tests
190
Bench
9 (6 parser + 3 PQC)

Go

Stable
implementations/go/

Package `twt` + sous-package `twt/config`. 138 tests, `-race` clean. ML-DSA-65 réel via cloudflare/circl 1.6.3 (pur Go).

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/go
go mod download
Tests
138
Bench
9 (6 parser + 3 PQC)

Java

Stable
implementations/java/

Projet Maven, JDK 17+. 179 tests. ML-DSA-65 réel via BouncyCastle 1.79.

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/java
mvn install
Tests
179
Bench
9 (6 parser + 3 PQC)

C# / .NET 8

Stable
implementations/csharp/

185 tests (166 principal + 22 TwtConfig). ML-DSA-65 réel via BouncyCastle.NET 2.6.2. Suite xUnit.

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/csharp
dotnet restore
Tests
185
Bench
9 (6 parser + 3 PQC)

C++

Stable
implementations/cpp/

Projet CMake. ML-DSA-65 réel via liboqs 0.15 (C API + RAII). 13 suites ctest, harness de benchmark.

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/cpp
mkdir build && cd build && cmake .. && make
Tests
13 suites
Bench
7 (4 HS256 + 3 PQC)

Swift

Stable
implementations/swift/

Projet Swift Package Manager. 150 tests. ML-DSA-65 réel via liboqs 0.15 SPM C-shim.

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/swift
swift build
Tests
150
Bench
7

C

Stable
implementations/c/

Build Makefile produisant libtwt.a. ~90 tests. ML-DSA-65 réel via liboqs 0.15 C API.

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/c
make
Tests
52
Bench

VB.NET

Stable
implementations/vbnet/

156 tests. ML-DSA-65 réel via BouncyCastle.NET 2.6.2. Partage la toolchain .NET 8 avec le SDK C#.

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/vbnet
dotnet restore
Tests
156
Bench
7 (4 HS256 + 3 PQC)

PHP

Stable
implementations/php/

157 tests. ML-DSA-65 réel via PHP-FFI vers liboqs 0.15. CI Docker (php:8.3-cli).

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/php
composer install
Tests
157
Bench
7

Perl

Stable
implementations/perl/

152 tests. ML-DSA-65 réel via FFI::Platypus 2.0 vers liboqs 0.15. CI Docker.

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/perl
cpanm --installdeps .
Tests
152
Bench
7

Fortran

Stable
implementations/fortran/

13 suites ctest. ML-DSA-65 réel via iso_c_binding vers liboqs 0.15. Build CMake, CI Docker.

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/fortran
mkdir build && cd build && cmake .. && make
Tests
13 suites
Bench
7

Delphi

Beta
implementations/delphi/

Revue statique validée. Framework de tests DUnitX. Windows uniquement (RAD Studio).

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/delphi
Tests
Revue statique
Bench

SDKs frontend (2/2)

React

Beta
implementations/react/

Hooks (`useTWT`, `useAuth`), `TWTProvider`, `ProtectedRoute`, persistance localStorage avec rafraîchissement automatique.

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/react
npm install

Vue 3

Beta
implementations/vue/

Composables (`useTWT`, `useAuth`), `createTWTPlugin`, navigation guards, état réactif avec rafraîchissement automatique.

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/vue
npm install

Contrat inter-SDK

  • Surface canonique identique sur 16 SDKs (cf. SDK_REFERENCE.md).
  • Mêmes événements SIEM : TWT_HONEYPOT_HIT, TWT_TOKEN_ISSUED, TWT_TOKEN_REVOKED, TWT_CONFIG_CHANGED, CONFIG_YAML_DEPRECATED, TWT_BREACH_DETECTED.
  • Mêmes variables d'env. : TWT_CONFIG_HMAC_KEY, TWT_CONFIG_HMAC, TWT_CONFIG_PATH.
  • Mêmes limites du parser : profondeur 10, 1 MiB total, 100 clés/objet, clés 256 octets, tableaux 10 000 éléments, 64 KiB par chaîne.
  • Mêmes vecteurs de test IETF : produits par la crate Rust, revalidés octet pour octet par chaque SDK conforme.
  • Double licence MIT/Apache-2.0 sur les 16 SDKs.