pwdx
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

pwdx NPM version

Generates a stateless password from the following properties

  • environment - Can be either ssh or web Open an issue if you have more use cases that make sense like tv, desktop or something
  • service - A service name like google.com or your-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 bob@gmail.com
? master password: ****
 
> Your generated password is: hFuUpOyHDFSKN5LD
> Serializable string (save to your password list): web/google.com/bob@gmail.com/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/bob@gmail.com/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! ✨

$ pwdx web google.com bob@gmail.com --no-symbols --length=6
? master password: ****
> Your generated password is: hFHrp8
> Serializable string (save to your password list): web/google.com/bob@gmail.com/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).

GitHub @queckezz · Twitter @queckezz

Readme

Keywords

none

Package Sidebar

Install

npm i pwdx

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

167 kB

Total Files

14

Last publish

Collaborators

  • queckezz