aboutsummaryrefslogtreecommitdiff
path: root/main_test.go
diff options
context:
space:
mode:
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)
+}