fix ssh key fingerprint (#2076)

ui/offscreen-diff-contents
Marko Gaćeša 2024-06-03 08:40:02 +00:00 committed by Harness
parent a1ce21aa7c
commit ef18a7aff2
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ func (key KeyInfo) MatchesKey(otherKey gossh.PublicKey) bool {
func (key KeyInfo) Fingerprint() string {
sum := sha256.New()
sum.Write(key.Key.Marshal())
return base64.StdEncoding.EncodeToString(sum.Sum(nil))
return "SHA256:" + base64.RawStdEncoding.EncodeToString(sum.Sum(nil))
}
func (key KeyInfo) Type() string {