You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
231 B
Go

package crypto
import (
"fmt"
"testing"
)
func TestPasswordEncrypt(t *testing.T) {
ps := NewPasswordHashService()
s, _ := ps.Hash("Admin@999")
fmt.Println(s)
//$2a$10$euUTp03TseiN7Wy/Y0NTTeLmwLShVYUbIg3z7dE62msUsh/8LGNpq
}