Module encryption

Source

Constants§

EPHEMERAL_PUBKEY_LEN 🔒
MIN_ENCRYPTED_LEN 🔒

Functions§

decrypt_bytes
Decrypts a message encrypted with encrypt_bytes using the recipient’s X25519 private key.
encrypt_bytes
Encrypts a message for a recipient using X25519 key agreement and XChaCha20Poly1305 authenticated encryption.