ZX2C4's pass in Windows
Recently I've migrated to
pass, but on its website there is no Windows installation guide. One of the things that helped me writing this guide is this blog post.
- If you want to integrate with Firefox, Python 3 (If you're running Windows 10 and you don't have Python installed yet you just need to open the command prompt and type
python followed by Enter. The Microsoft store will open and from there you can download Python)
- GPG4Win. No, the gpg bundled with git doesn't work.
How do we put this together?
- Import the GPG keys into Kleopatra (GPG keystore for Windows)
- Make sure you can access the repo with git and that you don't have incompatible path names for Windows in it.
- Download gopass. From there you will download a zip file. You only need the exe file inside it.
- Check your
PATH by typing
- If there's a folder inside your user folder in it, place the
gopass.exe in it and call it
- Otherwise, create a
bin folder and add it to the
- Creating a
bin folder somewere
explorer.exe, right click This Computer > Properties
- Click Advanced system settings (or similar)
- Click Environment variables
- Under User variables, select
Path, then click Edit
- Click Add, then type the path to the
- Click OK twice
- Logout and log back in
- Place the downloaded
gopass.exe in the
bin folder and name it
- Inside your prompt/shell, type
pass clone repo_URL
- Now, if yoy type
pass ls you should see all your passwords
- You should have a working
pass installation. While
gopass is almost a drop-in replacement for
pass, not all commands work the same. For example,
pass show in
gopass requires a website.
Install a GUI
- Download QtPass
- Right click the msi file and run it as administrator.
- If you're lucky, the program will open. If it doesn't, open
regedit.exe and go to
Computer\HKEY_CURRENT_USER\SOFTWARE\IJHack\QtPass. Check that the variables reference correct executables and the password store.
- At this point, you should have a working GUI.
Integrate with Firefox
- Go to this repo and install the host application.
- Go to
regedit.exe and open the specified path. In my case the path is
passff.py file is made to work with the standard pass executable, so it will fail miserably in our case.
- I've edited line 63 and replaced
ls. Here is my modified version.
- Now you can install the extension and, after restarting Firefox, your passwords should work.
- There's an option in about:addons that autofills your passwords that you can enable by opening passff's options.
If you find an issue or you want to comment the post you can head to its GitLab page.