class Crypto::SSHKey
- Crypto::SSHKey
- Reference
- Object
Defined in:
crypto/pubkey/ssh_key.crConstant Summary
-
SSH2_LINE_LENGTH =
70
-
SSH_CONVERSION =
{"rsa" => ["e", "n"], "dsa" => ["p", "q", "g", "pub_key"]}
-
SSH_TYPES =
{"ssh-rsa" => "rsa", "ssh-dss" => "dsa", "ssh-ed25519" => "ed25519", "ecdsa-sha2-nistp256" => "ecdsa", "ecdsa-sha2-nistp384" => "ecdsa", "ecdsa-sha2-nistp521" => "ecdsa"}
-
SSHFP_TYPES =
{"rsa" => 1, "dsa" => 2, "ecdsa" => 3, "ed25519" => 4}
Constructors
Instance Method Summary
-
#comment : String
Comment to use for the public key
-
#comment=(comment : String)
Comment to use for the public key
-
#directives : Array(String)
Options prefixed to the public key
-
#directives=(directives : Array(String))
Options prefixed to the public key
-
#passphrase : String | Nil
If the key is encrypted, supply the passphrase
-
#passphrase=(passphrase : String | Nil)
If the key is encrypted, supply the passphrase
Constructor Detail
def self.new(private_key : PrivateKey, passphrase : String | Nil = nil, comment : String | Nil = nil, directives : Array(String) | Nil = nil)
#