hide-keyring
At-rest key handling for the HIDE
protocol. hide-crypto knows nothing about files or passphrases; this crate
seals the 32-byte master seed under Argon2id + ChaCha20-Poly1305, with the KDF
parameters stored in the file and authenticated as AAD, and armors public keys
as text.
An Identity is one seed from which the encryption key and the signing seed
are derived by domain-separated HKDF — one thing to back up.
use ;
let identity = generate?;
let sealed = protect_identity?;
assert_eq!;
// `open` derives the recipient key the same way every HIDE surface does.
let secret = open?;
let public = secret.public_key?.to_bytes;
let armored = encode_public;
assert_eq!;
# Ok::
This protects a key file at rest; it is not a hardware-backed vault. While in use, the key lives in ordinary process memory (zeroized on drop).
Experimental and unaudited. Licensed Apache-2.0.