16 lines
214 B
Go
16 lines
214 B
Go
package encryption
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestEncrypt(t *testing.T) {
|
|
salt, hash, err := Encrypt("MyPassword")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
t.Logf("salt : %x\n", salt)
|
|
t.Logf("hash : %x\n", hash)
|
|
}
|