pwdx
v0.1.2
Published
stateless password generator
Downloads
5
Readme
pwdx
Generates a stateless password from the following properties
- environment - Can be either
ssh
orweb
Open an issue if you have more use cases that make sense liketv
,desktop
or something - service - A service name like
google.com
oryour-company
- account - An account name like
bob
- masterPassword - A Password which you should have memorized and not saved anywhere (except physically)
The password is reproducable given these properties but cannot be reproduced with one part missing. It cannot be reverse-engineered.
Installation
The package can be installed via your favourite node package manager:
$ npm install pwdx
CLI Usage
$ pwdx web google.com [email protected]
? master password: ****
> Your generated password is: hFuUpOyHDFSKN5LD
> Serializable string (save to your password list): web/google.com/[email protected]/16/digits:true/symbols:true
Besides your new generated password, it also generates a serializable string which you can save to your a google docs sheet or whatever you use to store notes (Try Notion!) and then use it to recreate the password using the cli:
$ pwdx web/google.com/[email protected]/16/digits:true/symbols:true
? master password: ****
> Your generated password is: hFuUpOyHDFSKN5LD
If you want you can also modify different generation attributes like the following:
- --length (default: 16) - Password length
- --no-digits (default: false) - Disable generating a password with digits
- --no-symbols (default: false) - Disable generating a password with symbols
These properties are stored in the serializable string aswell so it is completely reproducible! :sparkles:
$ pwdx web google.com [email protected] --no-symbols --length=6
? master password: ****
> Your generated password is: hFHrp8
> Serializable string (save to your password list): web/google.com/[email protected]/6/digits:true/symbols:false
Algorithm
The password encryption process is using the pbkdf2 algorithm from standard node crypto package. The generated buffer is then mapped onto a base85 (with default settings) charset to generate your password.
Author
pwdx © Fabian Eichenberger, Released under the MIT License. Authored and maintained by Fabian Eichenberger with help from contributors (list).