About pwd.sh
pwd.sh is a Bash script for managing text secrets, such as passwords, using GnuPG. Each secret goes into a randomly named file in a directory, and an encrypted index maps usernames to those files. Both the index and the secret files can be decrypted directly with GnuPG, without needing pwd.sh.
It is run interactively or with options on the command line, with actions to write, read and list secrets, generate a random secret or username, and archive the materials as a backup. Secrets are stored with an epoch timestamp for revision control, and the most recent version is read by default.
Behaviour is set through environment variables, including the storage directory, the clipboard command, how many seconds before a secret is cleared, and default secret length. An opt-in Pepper adds an extra string to the storage passphrase, letting a more memorable passphrase still resist brute-force attempts against backups.
Key features
- One randomly named file per secret
- Encrypted index maps usernames to secrets
- Timestamped versions with latest read by default
- Configured through environment variables
- Optional Pepper strengthens the storage passphrase
Good fit for
- Command line password storage
- Generating random passwords and usernames
- Backing up encrypted secrets to a tar archive
pwd.sh: questions and answers
- What is pwd.sh used for?
- pwd.sh is a Bash script that stores text secrets such as passwords as GnuPG symmetrically encrypted files, with an encrypted index of usernames. It is a good fit for command line password storage, generating random passwords and usernames, and backing up encrypted secrets to a tar archive.
- Is pwd.sh open source?
- Yes. pwd.sh is open source under the MIT licence. Its source code is on GitHub at drduh/pwd.sh and is written mainly in Shell.
- Is pwd.sh free?
- Yes. pwd.sh is open source, so the software itself is free to use.
- What are some alternatives to pwd.sh?
- Similar open-source tools in the Password Management category include Purse, KeyPass and Password Manager. SaaS products in the same category include Kaspersky Password Manager, NordPass and Avira Password Manager.
- Is pwd.sh actively maintained?
- Yes. The most recent commit to pwd.sh was on 19 October 2026, and the latest release is v4, published on 24 August 2026. The project has 1.6k stars on GitHub, with 1 added in the last 30 days.
Open-source alternatives to pwd.sh
See allPurse
Password Management
Manage secrets with Bash and GnuPG asymmetric encryption (YubiKey)
MIT★ 616KeyPass
Password Management
KeyPass: Open Source Project & An Offline Password Manager. Store, manage, and take contro
MITvs Dashlane★ 788
Password Manager
Password Management
Clipperz is an online vault and password manager that knows nothing about you and your dat
AGPL-3.0vs LogMeOnce★ 752
Teampass
Password Management
Collaborative Passwords Manager
GPL-3.0vs Enpass★ 1.9kPass for iOS
Password Management
Pass for iOS - an iOS client compatible with Pass command line application.
MITvs Keeper★ 1.7k
AliasVault
Password Management
Privacy-first password manager with built-in email aliasing. Fully encrypted and self-host
AGPL-3.0vs NordPass★ 3.5k
SaaS alternatives to pwd.sh
See allKaspersky Password Manager
Password Management
Password manager from Kaspersky with a free tier and paid sync across devices
SaaSNordPass
Password Management
Password and passkey manager from the makers of NordVPN, with a limited free tier
SaaS
Avira Password Manager
Password Management
Password manager from Avira with a free version and paid Pro features
SaaS
Bitdefender SecurePass
Password Management
Password manager from Bitdefender with passkey support and a digital wallet
SaaS
Codebook
Password Management
Secure password and data vault for Apple and Android devices by Zetetic
SaaSEnpass
Password Management
Password manager that stores vaults locally and syncs through your own cloud account
SaaS
