From 7c887cee6ffa1a4ce028e5ba55dbd090e29b907e Mon Sep 17 00:00:00 2001 From: Florian Ritterhoff Date: Thu, 26 Oct 2023 09:18:57 +0200 Subject: [PATCH] fix: better logging of password hash --- offline.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offline.go b/offline.go index 2e1f7f7..506c045 100644 --- a/offline.go +++ b/offline.go @@ -382,7 +382,7 @@ func (od *OfflineDatabase) ServeHTTP(w http.ResponseWriter, r *http.Request) { hash = sha1.Sum([]byte(pw)) } - od.logger.Sugar().Infof("checking password: %v", hash) + od.logger.Sugar().Infof("checking password: %s", hex.EncodeToString(hash[:])) frequency, err := od.Pwned(hash) if err != nil { od.logger.Sugar().Warnf("error checking password: %v", err)