summaryrefslogtreecommitdiffstats
path: root/internal/pwhash
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pwhash')
-rw-r--r--internal/pwhash/pwhash.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/internal/pwhash/pwhash.go b/internal/pwhash/pwhash.go
deleted file mode 100644
index 576d052..0000000
--- a/internal/pwhash/pwhash.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package pwhash
-
-import (
- "crypto/pbkdf2"
- "crypto/sha512"
-)
-
-const SaltSize = 8
-
-const defaultIter = 12059332 // from tools/finditer
-
-func HashIter(password string, salt []byte, iter int) ([]byte, error) {
- return pbkdf2.Key(sha512.New, password, salt, iter, 32)
-}
-
-func Hash(password string, salt []byte) ([]byte, error) {
- return HashIter(password, salt, defaultIter)
-}