[ 源代码: ruby-sshkey ]
软件包:ruby-sshkey(2.0.0-3)
SSH private/public key generator in Ruby
Generate private/public SSH keypairs (RSA and DSA supported) using pure Ruby.
When generating a new keypair the default key type is 2048-bit RSA, but you can supply the type (RSA or DSA) and bits in the options. You can also (optionally) supply a comment or passphrase.
This library can read a public or private key and present it as a string.