Expand description
Auth blob encryption and master-key resolution.
Auth blobs are AES-256-GCM ciphertexts of opaque cookie/storage state. The key is local to the host (encryption is not portable across machines). Resolution order on the daemon:
- OS keyring (
keyringcrate) under service"vibesurfer", account"default". - Fallback: a 32-byte file at
~/.vibesurfer/key.
Tests skip the keyring (it would prompt the user) and pass keys
explicitly via MasterKey::from_bytes.
Structs§
- Encrypted
Blob - One ciphertext + its 12-byte GCM nonce.
- Master
Key - A 32-byte AES-256 master key.
Constants§
- KEYRING_
ACCOUNT - Account name used for the OS keyring.
- KEYRING_
SERVICE - Service name used for the OS keyring.