- You don't need another password - it uses your ssh keys!
- You can store anything in it, username/password combinations, ssn, etc...
- Pretty much everything is encrypted using RSA keys
$ sudo pip install cofre
$ cofre --init
initializing config: /home/rafael/.cofre/cofre.cfg
$ cofre put mysite.com raf@ophion.org:mypassword
created a new record for [mysite.com] with creds: [raf@ophion.org:mypassword]
cofre can also auto generate a password for you:
$ cofre put mybank raf@ophion.org:
created a new record for [mybank] with creds: [raf@ophion.org:3QZ8YKaU6x]
note that all we had to do was end the credentials with a ':'
$ cofre get bank
results:
+----------+--------+---------------------------+
| id | name | creds |
+----------+--------+---------------------------+
| b634a168 | mybank | raf@ophion.org:3QZ8YKaU6x |
+----------+--------+---------------------------+
cofre performs fuzzy searches so it will returns the record(s) that closest match what you asked for
$ cofre -q get bank
results:
+----------+--------+---------------------------+
| id | name | creds |
+----------+--------+---------------------------+
| b634a168 | mybank | raf@ophion.org:3QZ8YKaU6x |
+----------+--------+---------------------------+
password is ready to be pasted.
$ cofre list
results:
+----------+------------+---------------------------+
| id | name | creds |
+----------+------------+---------------------------+
| f53521f3 | mysite.com | raf@ophion.org:mypassword |
| b634a168 | mybank | raf@ophion.org:3QZ8YKaU6x |
+----------+------------+---------------------------+
$ cofre del mybank
record deleted.
cofre exports its database as unencrypted json:
$ cofre export
{
"records": [
{
"id": "f53521f3-cf5e-4cd3-a881-4309e34fbb6e",
"creds": "raf@ophion.org:mypassword",
"name": "mysite.com"
}
],
"cofre": "export",
"version": "0.2.2",
"generated": "Wed Nov 17 21:46:34 2010"
}
and can import json back:
cofre import /tmp/export.txt
importing entries from /tmp/export.txt
1 records successfully imported.
M2Crypto is a library used for the RSA encryption and it prob will not install cleanly via pip (crap, I know). I suggest either using your platform package manager or downloading it directly from http://chandlerproject.org/bin/view/Projects/MeTooCrypto
Make sure you have a RSA SSH key (ssh-keygen is your friend). The actual location of the SSH key file can be changed by editing your cofre.cfg file