SHA-256, HMAC, HKDF, Argon2id password hashing, AES-256-GCM, Ed25519, ECDSA P-256, X25519, HPKE, base64 and hex: one C source on every target, native == wasm
loft install crypto
use crypto;
| Guide | getting started with crypto |
|---|---|
| Version | 0.5.3 — published 2026-12-03 |
| Categories | Cryptography |
| Requires | loft >=2026.11.20261124 |
| Compatibility | API: drop-in for 0.3.2 and later · stored data: drop-in for 0.3.2 and later |
| Download | 254 kB |
| Public API | 32 items, with their documentation |
| Dependencies | none |
| Used by | pluginabi |
| Source | read it here — the libraries are written in loft |
| Repository | https://github.com/loft-lang/loft-libs-core/tree/main/crypto |
A drop-in floor is the oldest release of this package the current one still replaces without a source change. Not declared means exactly that — the package has made no promise, which is the honest state for one published before the compatibility contract existed.