encryption_go/encryption_test.go
insanity@loafle.com ec7379a2ec .
2017-05-26 18:17:18 +09:00

20 lines
207 B
Go

package encryption
import (
"testing"
)
func TestEncrypt(t *testing.T) {
salt, hash, err := Encrypt("MyPassword")
if err != nil {
t.Fatal(err)
}
b:= Check("MyPassword", salt, hash)
t.Log(b)
}