Cellar is a simple password generation / retrieval tool inspired by Technology Preview for secure value recovery. The main algorithm is (a little bit tweak against original one):
) ) ) ) ) ) ) )
The main purpose of cellar is to allow people to just remember a single password, and by using the above algorithm, one can create as many application passwords which is cryptographically strong. A user just need to store the randomly gnerated salt and encrypted_c2 in local disk and the cloud so when she wants to generate or retrieve an application password, she could use her passphrase, plus the salt and encrypted_c2 to recover the master key, and then derive the application password. As long as user kept the passphrase secret in her mind, all the application passwords are secure. Even if the salt and encrypted_c2 are leaked, a hacker still need to brute force the master key.
By using Cellar, you don't need to trust the cloud provider to store your passwords, and you don't need to bother to remember a large number of passwords for different sites / applications.
Cellar is a MVP at the moment. Some future items:
- support hierarchical keys
- zeroize keys for security purpose
- generate password by a set of rules (min / max / character set)
- record the app_info and the rule it uses in an encrypted file
- provide a WebUI to make it easy to use
Initialize a cellar (default:
after initialization, a
~/.cellar/default.toml is generated. This files stores the random salt and the encrypted random seed like this:
Note that even if you regenerate the cellar with the same password you will get very different master key and derived application keys. So make sure you backup this file into your private cloud.
Generate an application password:
Generate hierarchical keys:
# generate parent key # generate app key by using parent key # it would be the same as generate the whole hierarchical key with master password
If you'd run benchmark for cellar, use
make bench_cellar. Argon2 will make the generation of the stretched key slow on purpose, the the default sample size would make the benchmark unbearly slow. An application password generation would spend around 18ms in my 2017 mbp.
) ) )