aboutsummaryrefslogtreecommitdiff
path: root/main_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-09-18 20:15:16 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-09-18 20:15:16 +0200
commit71e2fd608ccc0e6e85833a70df253cf0cfae9607 (patch)
tree805611f8719edfc7c0c438477e8388a66d1fb2b5 /main_test.go
parent12e5f9b5d1688e6c896801a15364c59dea5a301e (diff)
Add bcrypt_pbdkf
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/main_test.go b/main_test.go
new file mode 100644
index 0000000..1ea7dc7
--- /dev/null
+++ b/main_test.go
@@ -0,0 +1,16 @@
+package main
+
+import (
+ "testing"
+
+ "golang.org/x/crypto/bcrypt"
+)
+
+func TestBcrypt(t *testing.T) {
+ pw := "test"
+ ret, err := bcrypt.GenerateFromPassword([]byte(pw), 10)
+ if err != nil {
+ t.Error(err)
+ }
+ t.Log(ret)
+}