16 lines
204 B
Go
16 lines
204 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)
|
||
|
}
|