2013-08-06 20:35:50 +00:00
|
|
|
# Manage your passwords!
|
2013-06-16 21:01:09 +00:00
|
|
|
|
2013-12-20 17:44:27 +00:00
|
|
|
MPW is a little software which stores your passwords in an GPG encrypted file.
|
2016-05-16 18:41:51 +00:00
|
|
|
MPW can synchronize your password with via SSH or FTP.
|
2013-06-16 21:01:09 +00:00
|
|
|
|
2013-08-06 20:35:50 +00:00
|
|
|
# Installation
|
|
|
|
|
2016-05-16 18:41:51 +00:00
|
|
|
This program work with ruby >= 2.0
|
2013-08-06 20:35:50 +00:00
|
|
|
|
2015-06-21 21:48:14 +00:00
|
|
|
* install ruby and rubygems on your computer
|
|
|
|
* gem install mpw
|
2014-02-01 18:29:56 +00:00
|
|
|
|
2015-06-23 20:10:08 +00:00
|
|
|
# How to use
|
|
|
|
|
2016-05-16 18:41:51 +00:00
|
|
|
* Show help
|
2016-05-16 19:53:24 +00:00
|
|
|
```
|
2016-05-16 19:39:05 +00:00
|
|
|
mpw --help
|
2016-05-16 19:53:24 +00:00
|
|
|
```
|
2016-05-16 18:41:51 +00:00
|
|
|
|
|
|
|
* Setup a new config file
|
2016-05-16 19:53:24 +00:00
|
|
|
```
|
2016-05-16 19:39:05 +00:00
|
|
|
mpw --setup
|
|
|
|
mpw --setup --config /path/conf/file.cfg
|
2016-05-16 19:53:24 +00:00
|
|
|
```
|
2016-05-16 18:41:51 +00:00
|
|
|
|
|
|
|
* Create and setup a new wallet
|
2016-05-16 19:53:24 +00:00
|
|
|
```
|
2016-05-16 19:39:05 +00:00
|
|
|
mpw --setup-wallet --wallet new_wallet_name
|
|
|
|
mpw --setup-wallet --wallet new_wallet_name --config /path/conf/file.cfg
|
2016-05-16 19:53:24 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
* Add a GPG key in wallet
|
|
|
|
```
|
|
|
|
mpw --add --key root@localhost.local
|
|
|
|
mpw --add --key root@localhost.local --config /path/conf/file.cfg
|
|
|
|
mpw --add --key root@localhost.local --wallet wallet_name
|
|
|
|
mpw --add --key root@localhost.local --config /path/conf/file.cfg --wallet wallet_name
|
|
|
|
```
|
|
|
|
|
|
|
|
* Add a new GPG key in wallet
|
|
|
|
```
|
|
|
|
mpw --add --key root@localhost.local --file /path/gpg/file.pub
|
|
|
|
mpw --add --key root@localhost.local --file /path/gpg/file.pub --config /path/conf/file.cfg
|
|
|
|
mpw --add --key root@localhost.local --file /path/gpg/file.pub --wallet wallet_name
|
|
|
|
mpw --add --key root@localhost.local --file /path/gpg/file.pub --config /path/conf/file.cfg --wallet wallet_name
|
|
|
|
```
|
|
|
|
|
|
|
|
* Delete a GPG key in wallet
|
|
|
|
```
|
|
|
|
mpw --delete --key root@localhost.local
|
|
|
|
mpw --delete --key root@localhost.local --wallet wallet_name
|
|
|
|
mpw --delete --key root@localhost.local --wallet wallet_name --config /path/conf/file.cfg
|
|
|
|
```
|
2016-05-16 18:41:51 +00:00
|
|
|
|
|
|
|
* Add a new item in wallet
|
2016-05-16 19:39:05 +00:00
|
|
|
```
|
|
|
|
mpw --add
|
|
|
|
mpw --add --config /path/conf/file.cfg
|
|
|
|
mpw --add --wallet wallet_name
|
|
|
|
mpw --add --config /path/conf/file.cfg --wallet wallet_name
|
|
|
|
```
|
2016-05-16 18:41:51 +00:00
|
|
|
|
|
|
|
* Update an item
|
2016-05-16 19:39:05 +00:00
|
|
|
```
|
|
|
|
mpw --update --id uniq_id
|
|
|
|
mpw --update --id uniq_id --config /path/conf/file.cfg
|
|
|
|
mpw --update --id uniq_id --wallet wallet_name
|
|
|
|
mpw --update --id uniq_id --config /path/conf/file.cfg --wallet wallet_name
|
|
|
|
```
|
2016-05-16 18:41:51 +00:00
|
|
|
|
|
|
|
* Delete an item
|
2016-05-16 19:39:05 +00:00
|
|
|
```
|
|
|
|
mpw --delete --id uniq_id
|
|
|
|
mpw --delete --id uniq_id --config /path/conf/file.cfg
|
|
|
|
mpw --delete --id uniq_id --wallet wallet_name
|
|
|
|
mpw --delete --id uniq_id --config /path/conf/file.cfg --wallet wallet_name
|
|
|
|
```
|
2016-05-16 18:41:51 +00:00
|
|
|
|
|
|
|
* Show an item
|
2016-05-16 19:39:05 +00:00
|
|
|
```
|
|
|
|
mpw --show 'string to search'
|
|
|
|
mpw --show 'string to search' --config /path/conf/file.cfg
|
|
|
|
mpw --show 'string to search' --wallet wallet_name
|
|
|
|
mpw --show 'string to search' --config /path/conf/file.cfg --wallet wallet_name
|
|
|
|
mpw --show 'string to search' --group group_name
|
|
|
|
mpw --show 'string to search' --group group_name --config /path/conf/file.cfg
|
|
|
|
mpw --show 'string to search' --group group_name --wallet wallet_name
|
|
|
|
mpw --show 'string to search' --group group_name --config /path/conf/file.cfg --wallet wallet_name
|
|
|
|
```
|
2016-05-16 18:41:51 +00:00
|
|
|
|
|
|
|
* Export data in YAML file
|
2016-05-16 19:39:05 +00:00
|
|
|
```
|
|
|
|
mpw --export --file /path/file/to/export.yml
|
|
|
|
mpw --export --file /path/file/to/export.yml --config /path/conf/file.cfg
|
|
|
|
mpw --export --file /path/file/to/export.yml --wallet wallet_name
|
|
|
|
mpw --export --file /path/file/to/export.yml --config /path/conf/file.cfg --wallet wallet_name
|
|
|
|
```
|
2016-05-16 18:41:51 +00:00
|
|
|
|
|
|
|
* Import data from YAML file
|
2016-05-16 19:39:05 +00:00
|
|
|
```
|
|
|
|
mpw --import --file /path/file/to/export.yml
|
|
|
|
mpw --import --file /path/file/to/export.yml --config /path/conf/file.cfg
|
|
|
|
mpw --import --file /path/file/to/export.yml --wallet wallet_name
|
|
|
|
mpw --import --file /path/file/to/export.yml --config /path/conf/file.cfg --wallet wallet_name
|
|
|
|
```
|
2016-05-16 18:41:51 +00:00
|
|
|
|
|
|
|
Format file to import:
|
2016-05-16 19:39:05 +00:00
|
|
|
```
|
|
|
|
1:
|
|
|
|
name: Website perso
|
|
|
|
group: Perso
|
|
|
|
host: localhost.local
|
|
|
|
protocol: ftp
|
|
|
|
user: test
|
|
|
|
password: letoortue
|
|
|
|
port: 21
|
|
|
|
comment: Mysuper website
|
|
|
|
2:
|
|
|
|
name: Linuxfr
|
|
|
|
group: Pro
|
|
|
|
host: Linuxfr.org
|
|
|
|
protocol: https
|
|
|
|
user: test
|
|
|
|
password: coucou
|
|
|
|
port:
|
|
|
|
comment:
|
|
|
|
```
|