summaryrefslogtreecommitdiffstats
path: root/internal/pwhash/pwhash.go
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-09-23 22:33:30 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-09-23 22:33:30 -0700
commit40ad220fd0e26e3bf3be93c536b25cde1c00490f (patch)
tree1752e13e3bf0d93a5b25a71743eb4d2ce851263b /internal/pwhash/pwhash.go
parent24bdae7a803461bd9b13408f4fd332ebed5b5ac3 (diff)
downloadroseh.moe-40ad220fd0e26e3bf3be93c536b25cde1c00490f.tar.zst
Combine password hash and salt secrets
Diffstat (limited to 'internal/pwhash/pwhash.go')
-rw-r--r--internal/pwhash/pwhash.go2
1 files changed, 2 insertions, 0 deletions
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) {