Pass

pass is a simple password manager for the command line. Passwords are stored inside gpg encrypted files in a simple directory tree structure. pass is a shell script that makes use of existing tools like gnupg, pwgen, tree and git.

Installation

Install the pass package.

Basic usage

Note: To be able to use pass, set up gnupg as described in GnuPG#Basic keys management
  • Initialize the password store
$ pass init <gpg-id or email>
  • Insert password, providing a descriptive hierarchical name
$ pass insert archlinux.org/wiki/username
  • Get a view of the password store
$ pass
Password Store
└── archlinux.org
    └── wiki
        └── username
  • Generate a new random password, where <n> is the desired password length as a number.
$ pass generate archlinux.org/wiki/username <n>
  • Retrieve password, enter the gpg passphrase at the prompt
$ pass archlinux.org/wiki/username
  • Users of Xorg with xclip installed can retrieve the password directly onto the clipboard temporarily to paste into web forms via:
$ pass -c archlinux.org/wiki/username
Note: Users preferring the classical middle-click/paste can add the following to their respective ~/.shellrc for this behavior: export PASSWORD_STORE_X_SELECTION=primary

Migrating to pass

There are multiple scripts listed on the pass-project page to import passwords from other programs

GUI

There is now a stable release of qtpassAUR available on the AUR.

See also