duritong / trocla

A password store for password creation and retrieval
Other
76 stars 18 forks source link

New format to manage SSH keys #5

Closed icy closed 12 years ago

icy commented 12 years ago

Add ability to create/set/get the SSH key with format: ssh_dsa (private key), ssh_rsa (private key), ssh_dsa_public, ssh_rsa_public. The public key will be generated from the private key. If the option "random" is specified, the private key will be generated randomized. Public keys are generated from the private key, unless you update it manually by using "set".

All private keys aren't protected by the password (in plain form).

Note: This patch requires "Camelize" support (on the branch camelize). As the ssh keys are often in multiple lines, my patch on fix_stdin would be used when trocla is invoked at command line to read the known private key.