diff --git a/server.go b/server.go index 3465170..b466aee 100644 --- a/server.go +++ b/server.go @@ -1,7 +1,7 @@ package main import ( - "crypto/md5" + "crypto/sha1" "fmt" "net" "regexp" @@ -421,7 +421,7 @@ func (s *Server) Stop() { // Fingerprint returns the fingerprint based on a public key func Fingerprint(k ssh.PublicKey) string { - hash := md5.Sum(k.Marshal()) + hash := sha1.Sum(k.Marshal()) r := fmt.Sprintf("% x", hash) return strings.Replace(r, " ", ":", -1) }