1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-02-20 01:50:04 +00:00
MPW is a little software which stores your passwords in an GPG encrypted file.
Find a file
2017-03-08 21:23:15 +01:00
bin add random password for update 2017-02-26 23:12:49 +01:00
i18n add config option for password parameters 2017-02-25 18:43:30 +01:00
lib/mpw fix error when delete an item with sync 2017-03-08 21:23:15 +01:00
templates add random password for update 2017-02-26 23:12:49 +01:00
test fix test 2017-02-26 21:45:42 +01:00
.gitignore ignore *.gem 2017-03-03 22:57:03 +01:00
.travis.yml test with ruby 2.4 2017-02-11 19:08:26 +01:00
CHANGELOG.md convert changelog to markdown 2017-03-02 23:47:24 +01:00
Gemfile fix dependency version 2016-11-05 10:50:10 +01:00
LICENSE rename license 2013-12-26 21:02:53 +01:00
mpw.gemspec fix dependency version 2016-11-05 10:50:10 +01:00
README.md update readme 2017-03-03 22:42:30 +01:00
VERSION upgrade version 4.0.0-beta1 2017-02-16 23:32:24 +01:00

MPW: Manage your passwords!

Version Build Status License

mpw is a little software which stores your passwords in GnuPG encrypted files.

Features

  • generate random password
  • generate OTP code
  • copy your login, password or otp in clipboard
  • manage many wallets
  • synchronize your passwords with SSH or FTP.
  • share a wallet with others GPG keys

Install

On debian or ubuntu:

apt install ruby ruby-dev xclip
gem install mpw

How to use

First steps

Initialize your first wallet:

mpw config --init user@host.com

Add your first item:

mpw add

And list your items:

mpw list

or search an item with

mpw list --pattern Da
mpw list --group bank

Output:

Bank
 ==============================================================================
  ID | Host          | User      | Protocol | Port | OTP | Comment                
 ==============================================================================
  1  | bank.com      | 1234456   | https    |      |  X  |                        

Linux
 ==============================================================================
  ID | Host          | User      | Protocol | Port | OTP | Comment                
 ==============================================================================
  2  | linuxfr.org   | example   | https    |      |     | Da Linux French Site

Copy a password, login or OTP code:

mpw copy -p linuxfr

Update an item:

mpw update -p linuxfr

Delete an item:

mpw delete -p linuxfr

Manage wallets

List all available wallets:

mpw wallet --list

Create an other wallet:

mpw config --wallet work --init user@host.com

List all GPG keys in wallet:

mpw wallet --list-keys [--wallet NAME]

Share with an other GPG key:

mpw wallet --add-gpg-key test42@localhost.com
 or
mpw wallet --add-gpg-key /path/to/file

Remove a GPG key:

mpw wallet --delete-gpg-key test42@localhost.com

Add synchronize:

mpw wallet --protocol ssh --host example.com --user test --path /remote/path --password

Export and import data

You can export your data in yaml file with your passwords in clear text:

mpw export --file export.yml

Import data from an yaml file:

mpw import --file import.yml

Example yaml file for mpw:

---
1:
  host: bank.com
  user: 123456
  group: Bank
  password: secret
  protocol: https
  port: 
  otp_key: 1afg34
  comment: 
2:
  host: linuxfr.org
  user: example
  group: 
  password: 'complex %- password'
  protocol: https
  port: 
  otp_key: 
  comment: Da Linux French Site