Cryptographic primitives — SHA-256, HMAC, base64; Ed25519, X25519, HPKE (RFC 9180), ChaCha20-Poly1305 / XChaCha20-Poly1305 / AES-256-GCM, HKDF, OS CSPRNG.
loft install crypto
use crypto;
| Guide | getting started with crypto |
|---|---|
| Version | 0.3.14 — published 2026-10-20 |
| Categories | Cryptography |
| Requires | loft >=2026.10.0 |
| Compatibility | API: drop-in for 0.3.2 and later · stored data: drop-in for 0.3.2 and later |
| Download | 71 kB |
| Public API | 28 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.