package util import ( "log" "testing" ) /* func TestDecodeBasic(t *testing.T) { tests := []struct { name string header http.Header expUsername string expPassword string }{ */ func TestMd5Sum(t *testing.T) { test := []byte("hello") m5 := Md5Sum(test) // [93, 65, 64, 42, 188, 75, 42, 118, 185, 113, 157, 145, 16, 23, 197, 146] log.Println(m5) } func TestEvpBytesToKey(t *testing.T) { key := EvpBytesToKey("hello", 32) // [93, 65, 64, 42, 188, 75, 42, 118, 185, 113, 157, 145, 16, 23, 197, 146, 40, 180, 110, 211, 193, 17, 232, 81, 2, 144, 155, 28, 251, 80, 234, 15] log.Println(key) }