Purse

Open source

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

drduh.github.io
Purse homepage screenshot
GitHub stars
616
Last 30 days
+1(+0%)
Last commit
24 days ago
Repository age
8 years
Version
3.0
Licence
MIT
Self-hosted
Yes

About Purse

Purse is a small shell script for managing secrets. It is based on drduh/pwd.sh, and both use GnuPG to keep secrets in encrypted text files. Purse uses asymmetric public-key authentication, while pwd.sh uses a passphrase.

With Purse you plug in the YubiKey, enter the PIN and touch it to read a secret. The script offers commands to write, read and list secrets and to create a backup archive, and it can generate passwords of a chosen length.

Each password is stored with an epoch timestamp for revision control, and the newest version is copied to the clipboard on read. A GnuPG identity is required, and behaviour is tuned with environment variables.

Key features

  • Secrets in GnuPG-encrypted text files
  • YubiKey access instead of a passphrase
  • Timestamped versions of each password
  • Newest password copied to clipboard
  • Optional encrypted index
  • Backup archive creation

Good fit for

  • Storing passwords in encrypted files
  • Generating fixed-length passwords
Built with
Shell tools
Tags
password manager
gnupg
yubikey
bash
encryption
cli

Purse: questions and answers

What is Purse used for?
Purse is a Bash script that stores passwords in GnuPG-encrypted files and unlocks them with a YubiKey instead of a passphrase. It is a good fit for storing passwords in encrypted files and generating fixed-length passwords.
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, KeePassXC and KeyPass. SaaS products in the same category include Kaspersky Password Manager, NordPass and Avira Password Manager.
Is Purse actively maintained?
Yes. The most recent commit to Purse was on 20 October 2026, and the latest release is 3.0, published on 5 July 2024. The project has 616 stars on GitHub, with 1 added in the last 30 days.

Open-source alternatives to Purse

See all

SaaS alternatives to Purse

See all