Expand description
NaCl sealed-box wrapper for recipient-encrypted secret reads.
Wire format is the standard libsodium sealed box (ephemeral pubkey || box(plaintext))
so PyNaCl, tweetnacl-js, libsodium nacl/box, and Go nacl/box all decrypt.
Pure RustCrypto — compiles to wasm32-unknown-unknown.
Structs§
- Recipient
Private Key - A 32-byte X25519 recipient private key.
- Recipient
Public Key - A 32-byte X25519 recipient public key.
- Sealed
Secret - A sealed secret payload — recipient-encrypted ciphertext plus identifying metadata.
Enums§
- Sealed
Error - Errors produced by sealed-box operations.
Functions§
- fingerprint
- Compute a stable, short fingerprint for a recipient public key.
- open
- Open a base64-encoded libsodium sealed-box ciphertext with
recipient_priv. - open_
raw - Open a raw libsodium sealed-box ciphertext (as produced by
seal_raw) withrecipient_priv. - seal
- Seal
plaintexttorecipient_pubusing a libsodium-compatible sealed box. - seal_
raw - Seal
plaintexttorecipient_puband return the raw libsodium sealed-box ciphertext bytes (no base64 encoding, noSealedSecretmetadata wrapper).