From 71e2fd608ccc0e6e85833a70df253cf0cfae9607 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 18 Sep 2016 20:15:16 +0200 Subject: Add bcrypt_pbdkf --- main_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 main_test.go (limited to 'main_test.go') 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) +} -- cgit v1.2.3