Skip to content
GPG symmetric password manager
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.md Set umask, update license and documentation Jan 31, 2019
README.md Set umask, update license and documentation Jan 31, 2019
pwd.sh Set umask, update license and documentation Jan 31, 2019

README.md

pwd.sh

Script to manage passwords in an encrypted file using gpg.

screencast gif

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.sh

Use

cd pwd.sh and run the script interactively using ./pwd.sh

  • Type w to write a password.
  • Type r to read a password.
  • Type d to delete a password.
  • Type h to print the help text.

Options can also be passed on the command line.

Examples:

Create 30-character password for gmail:

$ ./pwd.sh w gmail 30

Append q to create a password without displaying it.

Read password for user@github:

$ ./pwd.sh r user@github

Delete password for dropbox:

$ ./pwd.sh d dropbox

Copy password for github to clipboard (substitute pbcopy on macOS):

$ ./pwd.sh r github | cut -f 1 -d ' ' | awk 'NR==3{print $1}' | xclip

The script and encrypted pwd.sh.safe file can be publicly shared between trusted computers.

See drduh/config/gpg.conf for additional GPG options.

Similar software

You can’t perform that action at this time.