repository-secrets.rb
#Fingerprint data by taking the first 8 characters of the sha1 hash.
#In the context of this program a public key is being used as data for the fingerprint.
Fingerprint data by taking the first 8 characters of the sha1 hash.
In the context of this program a public key is being used as data for the fingerprint.
Fingerprint data by taking the first 8 characters of the sha1 hash . In the context of this program a public key is being used as data for the fingerprint .
def fingerprint(public_key)
  verbose 3, "fingerprint(\"#{public_key}\")"
  fingerprint = (Digest::SHA1.hexdigest public_key).slice(0..7)
  verbose 3, "  returns \"#{fingerprint}\""
  return fingerprint
end
def fingerprint ( public_key ) verbose 3 , "fingerprint(\"#{public_key}\")" fingerprint = ( Digest :: SHA1 . hexdigest public_key ) . slice ( 0 .. 7 ) verbose 3 , "  returns \"#{fingerprint}\"" return fingerprint end
Fingerprint data by taking the first 8 characters of the sha1 hash.
Fingerprint data by taking the first 8 characters of the sha1 hash .
public_key