2017-02-21 19:32:26 +00:00
|
|
|
# MPW: Manage your passwords!
|
2017-05-03 18:39:32 +00:00
|
|
|
[![Version](https://img.shields.io/badge/latest_version-4.1.1-green.svg)](https://github.com/nishiki/manage-password/releases)
|
2017-02-21 19:32:26 +00:00
|
|
|
[![Build Status](https://travis-ci.org/nishiki/manage-password.svg?branch=master)](https://travis-ci.org/nishiki/manage-password)
|
|
|
|
[![License](https://img.shields.io/badge/license-GPL--2.0-blue.svg)](https://github.com/nishiki/manage-password/blob/master/LICENSE)
|
|
|
|
|
|
|
|
mpw is a little software which stores your passwords in [GnuPG](http://www.gnupg.org/) encrypted files.
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
2017-03-03 21:42:30 +00:00
|
|
|
* generate random password
|
2017-02-21 19:32:26 +00:00
|
|
|
* generate OTP code
|
|
|
|
* copy your login, password or otp in clipboard
|
2017-03-02 22:43:19 +00:00
|
|
|
* manage many wallets
|
|
|
|
* share a wallet with others GPG keys
|
2017-02-21 19:32:26 +00:00
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
On debian or ubuntu:
|
|
|
|
```
|
|
|
|
apt install ruby ruby-dev xclip
|
|
|
|
gem install mpw
|
|
|
|
```
|
|
|
|
|
2017-03-02 22:43:19 +00:00
|
|
|
## How to use
|
|
|
|
### First steps
|
2017-02-21 19:32:26 +00:00
|
|
|
|
2017-03-02 22:43:19 +00:00
|
|
|
Initialize your first wallet:
|
2017-02-21 19:32:26 +00:00
|
|
|
```
|
|
|
|
mpw config --init user@host.com
|
2017-03-02 22:43:19 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Add your first item:
|
|
|
|
```
|
2017-02-21 19:32:26 +00:00
|
|
|
mpw add
|
2017-03-02 22:43:19 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
And list your items:
|
|
|
|
```
|
2017-02-21 19:32:26 +00:00
|
|
|
mpw list
|
|
|
|
```
|
2017-03-02 22:43:19 +00:00
|
|
|
or search an item with
|
|
|
|
```
|
|
|
|
mpw list --pattern Da
|
|
|
|
mpw list --group bank
|
|
|
|
```
|
2017-02-21 19:32:26 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
```
|
2017-03-02 22:43:19 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
```
|
|
|
|
|
2017-03-03 21:42:30 +00:00
|
|
|
### 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
|
|
|
|
```
|
2017-04-22 08:25:19 +00:00
|
|
|
|
|
|
|
### 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
|
|
|
|
|
|
|
|
```
|