class SSHFingerprint

Constants

COLONS
PUBRE

Public Class Methods

VERSION() click to toggle source
# File lib/ssh_fingerprint/version.rb, line 3
def self.VERSION
  @@VERSION
end
compute(key) click to toggle source
# File lib/ssh_fingerprint/core.rb, line 9
def compute(key)
  key = key.clone
  key.gsub!(PUBRE, '')
  key = Base64.decode64(key)
  key = Digest::MD5.hexdigest(key)
  key.gsub!(COLONS, '\1:')
end