@hatch:crypto v0.2.1
AES-256-GCM authenticated encryption + Ed25519 sign/verify + CSPRNG.
$
hatch add @hatch:crypto
AES-256-GCM authenticated encryption + Ed25519 sign/verify + CSPRNG.
Aes.static key
Aes.static nonce
Aes.static encrypt(key, nonce, plaintext)
Aes.static encrypt(key, nonce, plaintext, aad)
Aes.static decrypt(key, nonce, ciphertext)
Aes.static decrypt(key, nonce, ciphertext, aad)
Aes.static validateKey_(k, label)
Aes.static validateNonce_(n, label)
Ed25519.static keypair
Ed25519.static publicFromSecret(secret)
Ed25519.static sign(secret, message)
Ed25519.static verify(public, message, signature)
Crypto.static bytes(n)
Password.static hash(password)
Password.static verify(password, hash)
Password.static hashWith(password, m, t, p)