aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-04-11 15:03:10 -0400
committerSam Anthony <sam@samanthony.xyz>2025-04-11 15:03:10 -0400
commitc0611f71a8d005169a7f15b9ba21be41125cd58c (patch)
treed34c0aa51b31f94fe1687c25b77defdd1fa76277
parent8b3f56a419eb6f3d8c0d711e5f35bae5fcfc534e (diff)
downloadhose-c0611f71a8d005169a7f15b9ba21be41125cd58c.zip
print fingerprint in hexadecimal
-rw-r--r--handshake.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handshake.go b/handshake.go
index 2cedaad..f741ef7 100644
--- a/handshake.go
+++ b/handshake.go
@@ -95,7 +95,7 @@ func verifyPublicKey(addr net.Addr, pubkey [32]byte) (bool, error) {
}
// Ask host to verify fingerprint.
- logf("Fingerprint of host %q: %s\nIs this the correct fingerprint (yes/[no])?",
+ logf("Fingerprint of host %q: %x\nIs this the correct fingerprint (yes/[no])?",
hostname, fingerprint(pubkey[:]))
var response string
n, err := fmt.Scanln(&response)