cpg

Crates.iocpg
lib.rscpg
version0.1.1
sourcesrc
created_at2023-03-31 15:44:53.375481
updated_at2023-04-29 10:32:54.041373
descriptiona CLI that consistently generates passwords given the same input.
homepage
repositoryhttps://github.com/9elt/cpg
max_upload_size
id826526
size26,543
Lorenzo Cicuttin (9elt)

documentation

README

cpg

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.

concept

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

installation

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

limitations

  • no salt encryption method yet.

  • inputs are not removed from .bash_history .

Commit count: 8

cargo fmt