pwd.sh
Script to manage passwords in an encrypted file using gpg.
New! drduh/Purse is a fork which uses public key authentication instead of a master passphrase and can integrate with YubiKey.
Installation
$ git clone https://github.com/drduh/pwd.shUse
cd pwd.sh and run the script interactively using ./pwd.sh
- Type
wto write a password. - Type
rto read a password. - Type
dto delete a password. - Type
hto print the help text.
Options can also be passed on the command line.
Examples:
Create 30-character password for gmail:
$ ./pwd.sh w gmail 30Append q to create a password without displaying it.
Read password for user@github:
$ ./pwd.sh r user@githubDelete password for dropbox:
$ ./pwd.sh d dropboxCopy password for github to clipboard (substitute pbcopy on macOS):
$ ./pwd.sh r github | cut -f 1 -d ' ' | awk 'NR==3{print $1}' | xclipThe script and encrypted pwd.sh.safe file can be publicly shared between trusted computers.
See drduh/config/gpg.conf for additional GPG options.
