Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Many users can share passwords with CPM securely.
The way CPM does this is by encrypting the password database with several public keys. This way all the keys on the recipient list can decrypt the password database.
Add keys to your database
Make sure you have the keys of the folks you are sharing your passwords with:
gpg --list-keys MyBuddy
- Enter CPM and hit CTRL-K
- then hit CTRL-A to add a key
- Write the email address of the key you want to add, and hit ENTER
- In unpatched CPM, the new key will not show up in the list unless you hit ENTER two more times.
- quit CPM, saving the database
- DONE! the database can be opened by MyBuddy's key. Repeat for OtherBuddy etc.
Sharing the CPM database
- There are two ways to share a database:
There are pros and caveats to both techniques. With centralized CPM getting access to your passwords involves connecting to the password server, and file locks are used to avoid users from racing to write to the database at the same time.
If you keep CPM in Revision control, users might overwrite each others changes, but they will be warned not to do so, nothing gets lost ever and you have offline access to the database.
Because it's more efficient and practical, I recommend you use the cooler, newschool technique of Revision control.