#password-generator #password-manager

app cpg

a CLI that consistently generates passwords given the same input

2 releases

0.1.1 Apr 29, 2023
0.1.0 Mar 31, 2023

#156 in Authentication

MIT license

229 lines


Consistent Password Generator.

this project is under development, and hasn't been reviewed by a cryptographer other limitations

A CLI that consistently generates passwords given the same input.


cpg is not a password manager, but can be used as an additional security layer on top of it.

The actual password used to sign up, and sign in, to services will not be stored anywhere as it will be generated every time instead.

 input    >       salt    =>    password
   ^                ^              ^
   |                |              |
 store it        genrated      use it to 
 online or       and stored    sign up and sign in
 remember it     locally       to services


cargo install cpg

see: installing binaries with cargo install, install rust and cargo

basic usage

-p list of passwords to salt

-s path to the salt to use (default ~/.conifg/cpg/secret.salt)

this is an example, you should use stronger inputs

$ cpg -p mybirthday iloveyou "mickey mouse"

mybirthday => 0#B[?7WZbufDrh#z{nJXPD8G6pP]BGQk
iloveyou => g3s5PKVbm1NK8UZFlyjxgsA%g5urG05#
mickey mouse => 1,it6rT^%=#geUO853q|€%B#@T4B"fjy


  • no salt encryption method yet.

  • inputs are not removed from .bash_history .


~117K SLoC