Module: PuTTY::Key

Defined in:
lib/putty/key.rb,
lib/putty/key/ppk.rb,
lib/putty/key/util.rb,
lib/putty/key/error.rb,
lib/putty/key/openssl.rb,
lib/putty/key/version.rb,
lib/putty/key/libargon2.rb,
lib/putty/key/argon2_params.rb

Overview

PuTTY::Key is a Ruby implementation of the PuTTY private key (ppk) format, handling reading and writing .ppk files. It includes a refinement to Ruby's OpenSSL library to add support for converting DSA, EC and RSA private keys to and from PuTTY private key files. This allows OpenSSH ecdsa, ssh-dss and ssh-rsa private keys to be converted to and from PuTTY's private key format.

Defined Under Namespace

Modules: OpenSSL Classes: Argon2Error, Argon2Params, Error, FormatError, InvalidStateError, PPK, UnsupportedCurveError

Constant Summary collapse

VERSION =

The PuTTY::Key version number.

'1.1.1'

Class Method Summary collapse

Class Method Details

.global_installObject

Makes the refinements available in PuTTY::Key available globally. After calling global_install, it is no longer necessary to include using PuTTY::Key when using the to_ppk and from_ppk methods added to OpenSSL::PKey.



15
16
17
# File 'lib/putty/key.rb', line 15

def self.global_install
  ::PuTTY::Key::OpenSSL.global_install
end