Pass Store
Complete Guide to pass: The Standard Unix Password Manager.
pass is a simple, Unix-philosophy-based password manager that stores each password in a GPG-encrypted file. It uses standard Unix tools and can be version-controlled with Git, making it perfect for developers and anyone who appreciates simple, transparent tools.
Why pass?
- Simple: Just encrypted files in
~/.password-store/ - Transparent: No proprietary formats, everything is GPG-encrypted text
- Version Controlled: Built-in Git support for tracking changes
- Flexible: Organize passwords however you want with folders
- Portable: Sync across multiple machines using Git
- Scriptable: Easy to integrate with other tools
Installation
Arch:
Setting Up GPG Keys
Before using pass, you need a GPG key pair.
Generate a New GPG Key
Follow the prompts:
- Choose RSA and RSA (default)
- Key size: 4096 bits
- Expiration: 0 (doesn’t expire) or set your preference
- Enter your name and email
- Set a strong passphrase
Get Your GPG Key ID
Look for the line like sec rsa4096/ABCD1234EFGH5678. The part after the / is your key ID.
Initializing pass
Basic Initialization
Or use your email:
This creates ~/.password-store/ and initializes it.
Initialize with Git
This turns your password store into a Git repository, automatically tracking all changes.
Add a Remote Repository
Basic Usage
Insert a New Password
You’ll be prompted to enter the password.
Insert Multi-line Data
Format example:
Generate a Random Password
Generate without symbols:
Generate and copy to clipboard:
Retrieve a Password
Show password:
Copy to clipboard (clears after 45 seconds):
Edit a Password
Remove a Password
List All Passwords
Organizing Your Passwords
Create a logical hierarchy:
Syncing Across Multiple Machines
Exporting Your GPG Key
On your primary machine, export your private key:
Export your public key:
Importing GPG Key on New Machine
Transfer your key files to the new machine, then:
Set trust level for your key:
In the GPG prompt:
Select option 5 (ultimate trust), then:
Setting Up pass on New Machine
-
Install
pass(see installation section) -
Clone your password store:
- Initialize pass with your key:
- Test it works:
You should see your password list and be prompted for your GPG passphrase.