All Projects → tyrchen → cellar

tyrchen / cellar

Licence: other
A password tool for user to derive a large amount of application passwords deterministically based on a passphrase. Cryptographically strong.

Programming Languages

rust
11053 projects
Makefile
30231 projects

Projects that are alternatives of or similar to cellar

Diceware
Passphrases to remember
Stars: ✭ 242 (+414.89%)
Mutual labels:  password
mysql-user-db-creator-bash-script
Script to create a mysql database, user and password with just a command
Stars: ✭ 24 (-48.94%)
Mutual labels:  password
weakpass generator
generates weak passwords based on current date
Stars: ✭ 36 (-23.4%)
Mutual labels:  password
Argon2 Jvm
Argon2 Binding for the JVM
Stars: ✭ 245 (+421.28%)
Mutual labels:  password
crimson-spray
A lockout aware password sprayer
Stars: ✭ 11 (-76.6%)
Mutual labels:  password
keevault
Kee Vault is a password manager for your web browser. Password databases (Vaults) are encrypted using the KeePass storage format before being sent to a remote server for synchronisation across any modern device/browser
Stars: ✭ 57 (+21.28%)
Mutual labels:  password
Vault Secrets Gen
A Vault secrets plugin for generating high entropy passwords and passphrases.
Stars: ✭ 238 (+406.38%)
Mutual labels:  password
javascript-strong-password-generator
JavaScript Strong Password Generator: based on Jeff Atwood's Post "Password Rules Are Bullshit".
Stars: ✭ 21 (-55.32%)
Mutual labels:  password
chrome-thief
A small program, lists all the stored user name and passwords with urls in Google Chrome.
Stars: ✭ 14 (-70.21%)
Mutual labels:  password
crypto
Aplus Framework Crypto Library
Stars: ✭ 20 (-57.45%)
Mutual labels:  password
CheckPasswordStrength
🔥 一个检测密码强度的Java工具库。
Stars: ✭ 55 (+17.02%)
Mutual labels:  password
vietnamese-password-dicts
Tổng hợp danh sách mật khẩu wifi tiếng Việt sử dụng cho aircrack-ng
Stars: ✭ 40 (-14.89%)
Mutual labels:  password
django-mail-auth
Django authentication via login URLs, no passwords required
Stars: ✭ 48 (+2.13%)
Mutual labels:  password
Strongbox
A secret manager for AWS
Stars: ✭ 243 (+417.02%)
Mutual labels:  password
PwnedPasswordsChecker
Search (offline) if your password (NTLM or SHA1 format) has been leaked (HIBP passwords list v8)
Stars: ✭ 52 (+10.64%)
Mutual labels:  password
Hatch
Hatch is a brute force tool that is used to brute force most websites
Stars: ✭ 242 (+414.89%)
Mutual labels:  password
CodeEditText
验证码,密码输入框。支持密码、明文展示。背景支持边框、填充、下划线展示。支持自定义背景和文本样式
Stars: ✭ 25 (-46.81%)
Mutual labels:  password
WPA2-FritzBox-Pswd-Wordlist-Generator
This Script will produce all of the WPA2 Passwords used by various Router companies aswell as Fritzbox. All of these Passwords will be 16 Numbers in length. So it could get a bit large.
Stars: ✭ 22 (-53.19%)
Mutual labels:  password
archiver-zip-encrypted
Plugin for archiver to create ZIP archives with password using either AES or legacy Zip 2.0 encryption
Stars: ✭ 50 (+6.38%)
Mutual labels:  password
Keepwords
📱🔐 Need an iOS password managing app with no pods? We got you covered!
Stars: ✭ 17 (-63.83%)
Mutual labels:  password

Cellar

Build Action Release Action Docs crates.io

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):

salt            = Secure-Random(output_length=32)
stretched_key   = Argon2(passphrase=user_passphrase, salt=salt)

auth_key        = HMAC-BLAKE2s(key=stretched_key, "Auth Key")
c1              = HMAC-BLAKE2s(key=stretched_key, "Master Key")
c2              = Secure-Random(output_length=32)
encrypted_c2    = ChaCha20(c2, key=auth_key, nonce=salt[0..CHACHA20_NONCE_LENGTH])

master_key      = HMAC-BLAKE2s(key=c1, c2)
application_key = HMAC-BLAKE2s(key=master_key, "app info, e.g. [email protected]")

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

Usage

cellar init

Initialize a cellar (default: $HOME/.cellar/default.toml)

$ cellar init
Creating cellar "$HOME/.cellar/default.toml"
Password: [hidden]
Your cellar "$HOME/.cellar/default.toml" is created! Feel free to use `cellar generate` to create or display your application password.

after initialization, a ~/.cellar/default.toml is generated. This files stores the random salt and the encrypted random seed like this:

$ cat ~/.cellar/default.toml
salt = "C6TQW8joYp2XoIkvaCNfo0ihJ3OacxlTbx68_oW8pF4"
encrypted_seed = "bHn5Lu3yX0g68rRJ4lTOwAvx_uMDFaBnZ_WMkJSU8TM"

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.

cellar generate

Generate an application password:

$ cellar generate --app-info "[email protected]"
Password: [hidden]
Password for [email protected]: FLugCDPDQ5NP_Nb0whUMwY2YD3wMWqoGcoywqqZ_JSU

Generate hierarchical keys:

# generate parent key
$ cellar generate -i "apps"
Password: [hidden]
Key for apps: 6CAakhEv_L2purgTfUasrvA9qgRZrQGdETDohSbBvNI

# generate app key by using parent key
$ cellar generate -i "my/awesome/app" --use-parent-key
Parent Key: [hidden]
Key for my/awesome/app: ZFqgQZK4Sx4GgwLn9D-qmhYE5gw0QbUSl4I8HaTseZs

# it would be the same as generate the whole hierarchical key with master password
$ cellar generate -i "apps/my/awesome/app"
Password: [hidden]
Key for apps/my/awesome/app: ZFqgQZK4Sx4GgwLn9D-qmhYE5gw0QbUSl4I8HaTseZs

Benchmark

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.

$ make bench_cellar
cargo bench --bench bench_cellar --  --sample-size 10
   Compiling cellar-core v0.1.0 (/Users/tchen/projects/mycode/cellar/cellar-core)
    Finished bench [optimized] target(s) in 3.92s
     Running /Users/tchen/.target/release/deps/bench_cellar-f87c142f98bb458c
app key                 time:   [17.812 ms 17.970 ms 18.161 ms]
                        change: [-1.8875% -0.3966% +1.2260%] (p = 0.65 > 0.05)
                        No change in performance detected.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].