From 70f0936e45e30bc2288a783e7e43ba5640ef98a7 Mon Sep 17 00:00:00 2001 From: Garrett Thornburg Date: Sat, 13 Dec 2014 08:17:15 -0700 Subject: [PATCH] Use sha1 for fingerprint instead of md5 --- server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index abdd61e..122ec0b 100644 --- a/server.go +++ b/server.go @@ -1,7 +1,7 @@ package main import ( - "crypto/md5" + "crypto/sha1" "fmt" "net" "regexp" @@ -282,7 +282,7 @@ func (s *Server) Stop() { } 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) }