One encrypted file
All entries live in ~/mypass.scrypt. Back it up, sync it, or copy
it to a USB stick. There's no server and no account.
Open source · Rust · Apache-2.0
MyPass is a command line password manager. It keeps everything in a single encrypted file, written in the standard scrypt format, so your vault stays recoverable without MyPass. You will never be locked in.
$ mypass init
Passphrase:
Confirm passphrase:
Initialized empty vault at /home/alice/mypass.scrypt
$ mypass add github.com alice --url github.com
Passphrase:
Password for 'github.com' copied to clipboard; clearing in 20s (press ENTER to clear now).
Clipboard cleared.
$ mypass list
Passphrase:
Vault: /home/alice/mypass.scrypt (1 entries)
github.com: alice
$ mypass get github.com
Passphrase:
alice
url: github.com
Password for 'github.com' copied to clipboard; clearing in 20s (press ENTER to clear now).
All entries live in ~/mypass.scrypt. Back it up, sync it, or copy
it to a USB stick. There's no server and no account.
scrypt key derivation, AES-256-CTR and HMAC-SHA256, all done in-process. Passwords are generated with ChaCha20, without modulo bias.
The vault is a standard scrypt file. Tarsnap's scrypt dec can
decrypt it to plain JSON at any time.
Use scriptable subcommands, or run plain mypass to browse and edit
your entries in an interactive terminal UI.
A copied password is cleared after 20 seconds, but only if it's still on the clipboard. Anything you copied in the meantime is kept.
Every save writes a temporary file, syncs it and renames it, and keeps the
previous version as .bak. A crash can't leave a truncated vault.
Firefox integration
A companion program, mypass-browser-host, decrypts the vault outside
the browser. It asks for your master passphrase in a pinentry dialog
and releases only the one entry that matches the site you are on.
url, using the Public Suffix List, so
github.com.evil.example gets nothing.File format and recovery
The vault uses the
scrypt
encrypted-data format (version 0), with scrypt parameters
N=217, r=8, p=1. Inside it is a small JSON document.
Interoperability with the reference scrypt
tool is checked in both directions by the test suite.
mypass export prints the same JSON, for backup or for moving to
another tool.
$ scrypt dec ~/mypass.scrypt
Please enter passphrase:
{"version":1,"entries":[
{"name":"github.com",
"username":"alice",
"password":"…"}]}
Secrets are wiped from memory once they are no longer needed, and are redacted from debug output.
MyPass disables core dumps at startup. On Linux it also marks itself
non-dumpable, which blocks ptrace attaches from other same-user processes.
On Unix, the vault and its backup are created with mode 0600
from the start.
Profile templates are included for confining both the CLI and the browser host.
Things MyPass can't control: clipboard history managers may keep their own copy of a password, and secrets in memory can be paged out to swap. Use encrypted swap. See the README for details.
Each release on GitHub has a tarball with mypass and
mypass-browser-host for Linux amd64.
You need a recent stable Rust toolchain.
git clone https://github.com/mikaelstaldal/mypass
cd mypass
cargo install --path .
mypass init # create an empty vault at ~/mypass.scrypt
mypass add github.com alice # generate a password and copy it to the clipboard
mypass get github.com # copy the password to the clipboard again
mypass list # show all entries
mypass # browse and edit interactively
mypass install-browser # install the Firefox native-messaging host
For the Firefox integration you also need pinentry and the MyPass add-on; see
webextension/README.md
for how to install it.
Also available as a native Android app.
See the README for every command and option.