From 40ad220fd0e26e3bf3be93c536b25cde1c00490f Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Tue, 23 Sep 2025 22:33:30 -0700 Subject: Combine password hash and salt secrets --- internal/pwhash/pwhash.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/pwhash') diff --git a/internal/pwhash/pwhash.go b/internal/pwhash/pwhash.go index 7bc62d4..97ce199 100644 --- a/internal/pwhash/pwhash.go +++ b/internal/pwhash/pwhash.go @@ -6,6 +6,8 @@ import ( "crypto/sha512" ) +const SaltLen = 32 + const defaultIterations = 3670016 // from cmd/finditers func HashIter(password string, salt []byte, iter int) ([]byte, error) { -- cgit v1.3.1