Table of Contents
- Table of Contents
- Initial Setup
- Using Pass
At the start of this year, I decided that I didn’t really like the fact that I didn’t know how my password manager worked. I didn’t know where my passwords were stored in their infrastrucutre, I didn’t know who had access to my passwords, and I didn’t know how they were being handled. Because of all these unknowns, I decided to look into setting up my own password mananger.
During my research about open source password managers I happened to stuble across an open source password manager called ‘pass’. pass is an open source password manager built upon the Unix philosophy. Pass uses Gnu Privacy Guard (GPG) which is an open source implementation of Open Pretty Good Privacy (OpenPGP).
The rest of this post will show you the initial setup and then list some tools I use to make pass more user friendly.
The initial setup for pass is very straight forward.
Generate a pgp key.
Install the pass package from your distros package manager.
Now initialise pass by passing the in ID of the generated GPG key.
initialize pass by passing in the ID of our GPG key
Setup Pass to Sync to GitHub
First, create a private GitHub repo where you will sync your encrypted passwords to.
pass git init pass git remote add origin "https://github.com/danielmoore-info/passdb.git" pass insert Personal/Social/facebook.com mkdir: created directory '/home/daniel/.password-store/Personal' mkdir: created directory '/home/daniel/.password-store/Personal/Social' Enter password for Personal/Social/facebook.com: Retype password for Personal/Social/facebook.com: [master 872d2ed] Add given password for Personal/Social/facebook.com to store. 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Personal/Social/facebook.com.gpg pass git push -u origin master
That’s all for the initial setup.
- Use pass via the command line, figure it out with:
- Use pass on Linux using this dmenu script https://git.zx2c4.com/password-store/tree/contrib/dmenu Basically create a shortcut that will run this script so you can copy your passwords without having to type a command
- On windows, I like this project https://github.com/geluk/pass-winmenu
You can find a heap of similar projects on the pass website: https://www.passwordstore.org/