class Travis::Client::Repository::Key
def ==(other)
def ==(other) other.to_s == self end
def encrypt(value)
def encrypt(value) encrypted = to_rsa.public_encrypt(value) Base64.encode64(encrypted).gsub(/\s+/, "") end
def initialize(data, fingerprint)
def initialize(data, fingerprint) @to_s = data @fingerprint = fingerprint end
def to_rsa
def to_rsa Tools::SSLKey.public_rsa_key(to_s) end
def to_ssh
def to_ssh Tools::SSLKey.rsa_ssh(to_rsa) end