You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
686 B
23 lines
686 B
package gomd5
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestMd5(t *testing.T) {
|
|
t.Logf(GetMD5Encode("测试"))
|
|
t.Logf(ToUpper(GetMD5Encode("测试")))
|
|
t.Logf(ToUpper("测试"))
|
|
}
|
|
|
|
func TestGet16MD5EncodeToUpper(t *testing.T) {
|
|
t.Logf("A" + Get16MD5EncodeToUpper("10000,admin"))
|
|
t.Logf("A" + Get16MD5EncodeToUpper("10001,agent"))
|
|
t.Logf("A" + Get16MD5EncodeToUpper("10007,agent"))
|
|
t.Logf("A" + Get16MD5EncodeToUpper("10008,agent"))
|
|
t.Logf("A" + Get16MD5EncodeToUpper("10010,agent"))
|
|
t.Logf("M" + Get16MD5EncodeToUpper("10011,merchant"))
|
|
t.Logf("M" + Get16MD5EncodeToUpper("10015,merchant"))
|
|
t.Logf("U" + Get16MD5EncodeToUpper("AE4E9C88A45813D4D,oojLm5Xv9iJ36WZGgJHooHcNyFGs,mini_user"))
|
|
}
|