pwd.sh

Open source

pwd.sh is a Bash script that stores text secrets such as passwords as GnuPG symmetrically encrypted files, with an encrypted index of usernames.

drduh.github.io
pwd.sh homepage screenshot
GitHub stars
1.6k
Last 30 days
+1(+0%)
Last commit
25 days ago
Repository age
11 years
Version
v4
Licence
MIT
Self-hosted
Yes

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
Built with
Shell tools
Tags
password manager
bash
gnupg
command line
encryption
open source

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 all

SaaS alternatives to pwd.sh

See all