overflow_probe/encryption/encryption_test.go

16 lines
204 B
Go
Raw Normal View History

2017-08-03 10:08:34 +00:00
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)
}