aboutsummaryrefslogtreecommitdiff
path: root/main_test.go
blob: 1ea7dc7c8123c9cf1716d93922f37ad01d28eeb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)
}