create_key(length = KEY_LENGTH, algorithm = KEY_ALGORITHM)
public
Creates a new key pair of the specified length and
algorithm. The default is a 3072 bit RSA key.
# File lib/rubygems/security.rb, line 467
def self.create_key length = KEY_LENGTH, algorithm = KEY_ALGORITHM
algorithm.new length
end