7,363 open-source and SaaS tools, with GitHub stats refreshed every day.

Purse

Open source

Bash script that stores secrets in GnuPG-encrypted files and unlocks them with a YubiKey instead of a passphrase.

drduh.github.io
Purse homepage screenshot
GitHub stars
615
Last commit
2 mo ago
Repository age
8 years
Version
3.0
Licence
MIT
Self-hosted
Yes

About Purse

Purse is a command-line secrets manager written as a Bash script. It stores passwords and other secrets in encrypted text files using GnuPG, and relies on asymmetric, public-key authentication rather than a passphrase. With a YubiKey you plug in the key, enter a PIN and touch it to read a secret. It is a sibling of the same author's pwd.sh, which uses symmetric, passphrase-based encryption. It suits technical users comfortable with GnuPG and the shell.

A GnuPG identity is required, and the README points to the author's YubiKey guide for setting one up. Run the script interactively or from the command line to write, read and list secrets, and to create and restore backup archives. Passwords are stored with an epoch timestamp so earlier versions are kept, and reading a password copies the most recent one to the clipboard, which is cleared after a configurable number of seconds.

Behavior can be tuned through environment variables, for example the clipboard command and clipboard arguments, the clear delay and the default generated password length. The repository ships recommended GnuPG options. Purse is MIT licensed and runs on Unix-like systems, using xclip on Linux and pbcopy on macOS by default.

Key features

  • GnuPG-encrypted secrets in plain files
  • YubiKey unlock with PIN and touch
  • Password generation
  • Timestamped password versions
  • Backup and restore archives
  • Clipboard auto-clear

Good fit for

  • →Keeping personal passwords under hardware-key control
  • →Scripting secret retrieval in a shell workflow
Built with
Shell
Tags
password-manager
gnupg
yubikey
bash
encryption
secrets
cli
security

Purse: questions and answers

What is Purse used for?
Purse is a bash script that stores secrets in GnuPG-encrypted files and unlocks them with a YubiKey instead of a passphrase. It is a good fit for keeping personal passwords under hardware-key control and scripting secret retrieval in a shell workflow.
Is Purse open source?
Yes. Purse is open source under the MIT licence. Its source code is on GitHub at drduh/Purse and is written mainly in Shell.
Is Purse free?
Yes. Purse is open source, so the software itself is free to use.
What are some alternatives to Purse?
Similar open-source tools in the Password Management category include pwd.sh, Gopass and KeePassXC. SaaS products in the same category include Bitdefender SecurePass, Codebook and 1Password.
Is Purse actively maintained?
Yes. The most recent commit to Purse was on 26 July 2026, and the latest release is 3.0, published on 5 July 2024. The project has 615 stars on GitHub.

Open-source alternatives to Purse

See all

SaaS alternatives to Purse

See all