v1.1.1 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2022 License: BSD-3-Clause Imports: 17 Imported by: 0



Passmgr is a simple password manager which allows to securely store passphrases and retrieve them via commandline.

Usage of passmgr:

-appTTL int
  	time in seconds after which the application quits if there is no user interaction (default 120)
  	change the master passphrase
-clipboardTTL int
  	time in seconds after which the clipboard is reset (default 15)
-file string
  	specify the passmgr store (default "/home/david/.passmgr_store")
-import string
  	file to import credentials from

In its default mode (no arguments), passmgr allows to select stored passphrases which are then copied to the clipboard for a limited amount of time in order to be pasted into a passphrase field. After this time, the clipboard is erased.

All credentials are stored AES256-GCM encrypted in a single file which by default is located in the users home directory. The encryption key for this file is derived from a master passphrase using scrypt.

Select Example:

$ passmgr
[passmgr] master passphrase for /home/david/.passmgr_store:

n)   User                URL
1)   urld      
2)   david     
3)   david     

Command: (S)elect, (f)ilter, (a)dd, (d)elete or (q)uit?
Select: 1

Passphrase copied to clipboard!
Clipboard will be erased in 15 seconds.


Passphrase erased from clipboard.

Filter Example:

# ...

Command: (S)elect, (f)ilter, (a)dd, (d)elete or (q)uit? f
Filter: twitterdavid

n)   User    URL
2)   david
3)   david

The filter can be reset by leaving it empty.

Import Example:

$ passmgr -import dump.json
[passmgr] master passphrase for /home/david/.passmgr_store:

n)   User                URL
1)   urld      
2)   david     
3)   david     
5)   import1   
6)   import2   
7)   import3   

Do you wish to save the imported changes? [Y/n]

The dump.json has to look like this:

  {"User":"import1", "URL":"", "Secrets":{"passphrase":"secret2"}},
  {"User":"import2", "URL":"", "Secrets":{"passphrase":"secret3"}},
  {"User":"import3", "URL":"", "Secrets":{"passphrase":"secret4"}},

Please make sure you delete the json file after it is imported, since it contains all your secrets in plaintext.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL