class Perkins::Build::Data::SshKey
Public Instance Methods
encoded?()
click to toggle source
# File lib/perkins/build/data.rb, line 95 def encoded? encoded end
fingerprint()
click to toggle source
# File lib/perkins/build/data.rb, line 99 def fingerprint rsa_key = OpenSSL::PKey::RSA.new(value) public_ssh_rsa = "\x00\x00\x00\x07ssh-rsa" + rsa_key.e.to_s(0) + rsa_key.n.to_s(0) OpenSSL::Digest::MD5.new(public_ssh_rsa).hexdigest.scan(/../).join(':') end
value()
click to toggle source
Calls superclass method
# File lib/perkins/build/data.rb, line 87 def value if encoded? Base64.decode64(super) else super end end