aboutsummaryrefslogtreecommitdiff
path: root/pbkdf.go
diff options
context:
space:
mode:
Diffstat (limited to 'pbkdf.go')
-rw-r--r--pbkdf.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/pbkdf.go b/pbkdf.go
index afc86d1..6a88fc1 100644
--- a/pbkdf.go
+++ b/pbkdf.go
@@ -1,9 +1,15 @@
package main
-import "hash"
+import (
+ "hash"
+
+ "golang.org/x/crypto/pbkdf2"
+)
// bcrypt_pbkdf
+const magic = "OxychromaticBlowfishSwatDynamite"
+
func Key(password, salt []byte, iter, keyLen int, h func() hash.Hash) []byte {
- return nil
+ return pbkdf2.Key(password, salt, iter, keyLen, h)
}