pub type UsernamePassword = KeyingScheme<Argon2UserPass, Symmetric>;
Expand description

Use a combination of username/password to locate and unlock a tree.

Note that all keys that are directly used to secure the tree’s contents are derived from a convergence key, which is stored in the encrypted header.

The username/password combination can be therefore changed freely. Changing the username and/or password will always result in a new root object id.

Implementation details

The 512-byte binary header layout looks like so:

encrypt(root[88] || mode[1] || convergence_key[32] || 0[..]) || mac[16] || nonce[12]

Implementations