Encrypt your passwords with pass


Pass is a standard unix password manager which uses GPG encryption underthehood to encrypt and store passwords and many other things.


Password management should be simple and follow Unix philosophy. With pass, each password lives inside of a gpg encrypted file whose filename is the title of the website or resource that requires the password. These encrypted files may be organized into meaningful folder hierarchies, copied from computer to computer, and, in general, manipulated using standard command line file management utilities.

This assumes that you have a GPG key, and have pass installed. pass uses a “password store”, just a directory (usually ~/.password-store), to store your passwords.


  • Install pass: sudo pacman -S pass
  • Generate gpg key: gpg --full-generate-key
  • Remember your key or for see again it gpg --list-secret-keys --keyid-format LONG
  • Initialize your key pass init "gpg-key"


Add new password
  • Add new password to database pass insert xyz.com
  • Add multi line password pass insert -m abc.com
Generate Random password
  • pass generate mylogin It will generate complex password like this $(-QF&Q=IN2nFBx and store it to database
Show passwords
  • Enter pass to see a list of your saved password
  • See your password pass xyz.com
Copy password to clipboard

pass -c xyz.com

You can edit the existing password

pass edit xyz.com

Remove passwords from store

pass remove xyz.com

Manual Decryption

  • manually decrypting .gpg file
    • change directory to where is your gpg keys located
    • Type gpg -d testsite.com.gpg
    • enter your passphrase

Using with passmenu

Passmenu is handy tool to use this pass utility very convenient way. Accessing Password from dmenu

Install passmenu

pacman -S passmenu

  • create an keybinding for passmenu in sxhkd or window manager
  • passmenu copies the password into clipboard for 45 sec
  • and also add this line into passmenu file to get notify `notify-send “Password for $password copied to clipboard for 45sec.”
  1. https://www.passwordstore.org/
  2. https://git.zx2c4.com/password-store/about/