Sedici SDK, una sola superficie canonica

Stessi eventi SIEM. Stessi limiti del parser. Stessi vettori di test IETF. Stesse variabili d'ambiente. Scegli il linguaggio; il contratto è identico.

Clona il repository

Esplora su GitLab
git clone https://gitlab.com/toontoolbox/toonwebtoken.git

SDK backend (14)

Rust

Stabile
implementations/rust/

Crate Rust di riferimento `toonwebtoken` 1.5.0 — doppia licenza MIT/Apache-2.0. Benchmark Criterion sotto i 30 ms. ML-DSA-65 real tramite 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

Stabile
implementations/python/

SDK di riferimento con 322 test. I moduli coprono hardening (TWT-A), integrità della configurazione (TWT-C), AuditTrail (TWT-D4). ML-DSA-65 real tramite 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

Stabile
implementations/javascript/

190 test. ML-DSA-65 real tramite @noble/post-quantum. Test runner Jest, harness perf_hooks per i benchmark.

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

Go

Stabile
implementations/go/

Pacchetto `twt` + sotto-pacchetto `twt/config`. 138 test, `-race` pulito. ML-DSA-65 real tramite cloudflare/circl 1.6.3 (Go puro).

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

Java

Stabile
implementations/java/

Progetto Maven, JDK 17+. 179 test. ML-DSA-65 real tramite 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

Stabile
implementations/csharp/

185 test (166 principali + 22 TwtConfig). ML-DSA-65 real tramite 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++

Stabile
implementations/cpp/

Progetto CMake. ML-DSA-65 real tramite liboqs 0.15 (API C + RAII). 13 suite ctest, harness per benchmark.

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

Swift

Stabile
implementations/swift/

Progetto Swift Package Manager. 150 test. ML-DSA-65 real tramite 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

Stabile
implementations/c/

Build Makefile che produce libtwt.a. ~90 test. ML-DSA-65 real tramite liboqs 0.15 API C.

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

VB.NET

Stabile
implementations/vbnet/

156 test. ML-DSA-65 real tramite BouncyCastle.NET 2.6.2. Condivide la toolchain .NET 8 con l'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

Stabile
implementations/php/

157 test. ML-DSA-65 real tramite PHP-FFI verso liboqs 0.15. CI basata su Docker (php:8.3-cli).

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

Perl

Stabile
implementations/perl/

152 test. ML-DSA-65 real tramite FFI::Platypus 2.0 verso liboqs 0.15. CI basata su Docker.

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

Fortran

Stabile
implementations/fortran/

13 suite ctest. ML-DSA-65 real tramite iso_c_binding verso 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 suite
Bench
7

Delphi

Beta
implementations/delphi/

Revisione statica convalidata. Framework di test DUnitX. Solo Windows (RAD Studio).

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/delphi
Tests
Revisione statica
Bench

SDK frontend (2/2)

React

Beta
implementations/react/

Hook (`useTWT`, `useAuth`), `TWTProvider`, `ProtectedRoute`, persistenza in localStorage con auto-refresh.

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

Vue 3

Beta
implementations/vue/

Composable (`useTWT`, `useAuth`), `createTWTPlugin`, navigation guard, stato reattivo con auto-refresh.

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

Contratto cross-SDK

  • Stessa superficie canonica su 16 SDK (vedi SDK_REFERENCE.md).
  • Stessi eventi SIEM: TWT_HONEYPOT_HIT, TWT_TOKEN_ISSUED, TWT_TOKEN_REVOKED, TWT_CONFIG_CHANGED, CONFIG_YAML_DEPRECATED, TWT_BREACH_DETECTED.
  • Stesse variabili d'ambiente: TWT_CONFIG_HMAC_KEY, TWT_CONFIG_HMAC, TWT_CONFIG_PATH.
  • Stessi limiti del parser: profondità 10, 1 MiB totali, 100 chiavi/oggetto, chiavi da 256 byte, array da 10 000 elementi, 64 KiB per stringa.
  • Stessi vettori di test IETF: prodotti dal crate Rust, riconvalidati byte per byte da ogni SDK conforme.
  • Doppia licenza MIT/Apache-2.0 su tutti i 16 SDK.