Disponible
amalgame-crypto
SHA-256 + HMAC-SHA-256 pur, no OpenSSL.
Vue d'ensemble
Primitives cryptographiques implémentées en pur Amalgame (référence RFC). Aujourd'hui : SHA-256 et HMAC-SHA-256. Suffisant pour les hashs, les tokens HMAC, le handshake WebSocket. Argon2id, RSA, Ed25519 prévus en v0.2.
Caractéristiques
- ✓SHA-256 (RFC 6234)
- ✓HMAC-SHA-256 (RFC 2104)
- ✓Pure Amalgame — pas de binding OpenSSL
- ✓Tokens stateless type JWT HS256
- ✓Roadmap : Argon2id (mdp), RSA, Ed25519, AEAD
Exemple
Exemple minimal d'utilisation — recopiable tel quel après l'install.
amc package add crypto
let digest = Crypto.Sha256("hello").Hex()
let token = Crypto.HmacSha256("payload", "secret-key").Base64Url()
En bref
- Licence : Apache-2.0
- Installation :
amc package add crypto - Code source : amalgame-lang/amalgame-crypto
- Index officiel : amalgame-lang/packages-index