1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-10-27 02:33:19 +00:00
MPW is a little software which stores your passwords in an GPG encrypted file.
Find a file
2017-05-13 19:49:52 +02:00
bin fix: remove unused method 2017-05-03 19:54:21 +02:00
i18n feat: add options to edit or update an item 2017-04-13 22:35:57 +02:00
lib/mpw add search test in cli 2017-05-13 19:49:52 +02:00
templates feat: add options to edit or update an item 2017-04-13 22:35:57 +02:00
test add search test in cli 2017-05-13 19:49:52 +02:00
.gitignore feat: comment the code with yard 2017-05-03 22:53:56 +02:00
.rubocop.yml fix syntax for all tests 2017-05-11 22:46:59 +02:00
.travis.yml update ruby version for test 2017-05-07 19:29:22 +02:00
CHANGELOG.md update version 4.1.1 2017-05-03 20:39:32 +02:00
Gemfile remove unused dependancies 2017-03-30 22:41:12 +02:00
LICENSE rename license 2013-12-26 21:02:53 +01:00
mpw.gemspec gemspec: add minimal ruby version 2017-04-20 23:26:40 +02:00
README.md update version 4.1.1 2017-05-03 20:39:32 +02:00
VERSION update version 4.1.1 2017-05-03 20:39:32 +02: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
  • 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

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

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

Config

Print the current config

mpw config

Output:

Configuration
 ==============================================
  lang             | fr
  gpg_key          | mpw@yae.im
  default_wallet   |
  config_dir       | /home/mpw/.config/mpw
  pinmode          | true
  gpg_exe          |
  path_wallet_test | /tmp/test.mpw
  password_numeric | true
  password_alpha   | true
  password_special | false
  password_length  | 16