- md5:增加 `Get16MD5EncodeToUpper` 方法

master
李光春 2 years ago
parent cefabc5af3
commit 488c06a9d6

@ -8,6 +8,7 @@
- string优化
- string增加 `ToString` 方法
- string增加 `Contains` 方法
- md5增加 `Get16MD5EncodeToUpper` 方法
## v1.0.39 / 2021-12-27

@ -47,3 +47,8 @@ func GetMD5Encode(data string) string {
func Get16MD5Encode(data string) string {
return GetMD5Encode(data)[8:24]
}
// Get16MD5EncodeToUpper 返回一个16位md5加密后的大写字符串
func Get16MD5EncodeToUpper(data string) string {
return strings.ToUpper(Get16MD5Encode(data))
}

Loading…
Cancel
Save