mdp is a wrapper around GnuPG and your text editor, it includes a fullscreen pager with timeout (avoids passwords from lingering on screen) and a password generator with profiles.
Here is a minimal ~/.mdp/config file, just change the gpg key:
# GnuPG key id (default: none, let gpg pick a key) set gpg_key_id "6453194A" # Editor used in edit mode (ignore if you have $EDITOR configured) set editor "/usr/bin/vim"
If you like to customize your configuration, here is a dump of a full configuration file with all the defaults:
# GnuPG configuration set gpg_path "/usr/bin/gpg" set gpg_key_id "6453194A" set gpg_timeout 5 # Set the editor (defaults to $EDITOR), used for edit and add: # # mdp edit # mdp add # set editor "/usr/bin/vi" # Timeout in pager mode in seconds, used with get: # # mdp get github # set timeout 10 # Default configuration without profile: # set password_count 4 # set character_set 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz set character_count 12 # Define a profile for 7 digits passwords, to be used with: # # mdp gen -p num7 # profile num7 set password_count 10 set character_count 7 set character_set 1234567890 # Another profile using only hexadecimal: profile hex set character_set ABCDEF1234567890
Latest tarball: mdp-0.7.4.tar.gz (45K, signature)
fedora: tamentis-mdp (thanks to Raphael Groner)
openSUSE: utilities/mdp (thanks to Pascal Bleser)
Source Mage: test/utils/mdp (thanks to Vlad Glagolev)
macOS (Homebrew): brew install tamentis/core/mdp
$ ./configure $ make $ sudo make install
Last updated: 2019-03-02 15:33:34 EST