DOCS v0.1.13 github

@hatch:crypto v0.2.1

AES-256-GCM authenticated encryption + Ed25519 sign/verify + CSPRNG.

stable data updated May 1, 2026 source ↗
README
$ hatch add @hatch:crypto

MOD crypto

CL Aes

FN Aes.static key

FN Aes.static nonce

FN Aes.static encrypt(key, nonce, plaintext)

FN Aes.static encrypt(key, nonce, plaintext, aad)

FN Aes.static decrypt(key, nonce, ciphertext)

FN Aes.static decrypt(key, nonce, ciphertext, aad)

FN Aes.static validateKey_(k, label)

FN Aes.static validateNonce_(n, label)

CL Ed25519

FN Ed25519.static keypair

FN Ed25519.static publicFromSecret(secret)

FN Ed25519.static sign(secret, message)

FN Ed25519.static verify(public, message, signature)

CL Crypto

FN Crypto.static bytes(n)

CL Password

FN Password.static hash(password)

FN Password.static verify(password, hash)

FN Password.static hashWith(password, m, t, p)