持己数组接计算签名
This commit is contained in:
parent
2936ec4ba5
commit
1fcde5ff76
11
string.go
11
string.go
@ -58,6 +58,17 @@ func (s *stringOperate) Md5(str string) string {
|
||||
return hex.EncodeToString(h.Sum(nil))
|
||||
}
|
||||
|
||||
// Md5FromByte 从字节数组计算签名
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2022/10/21 14:12:16
|
||||
func (s *stringOperate) Md5FromByte(data []byte) string {
|
||||
h := md5.New()
|
||||
_, _ = h.Write(data)
|
||||
return hex.EncodeToString(h.Sum(nil))
|
||||
}
|
||||
|
||||
// SnakeCaseToCamel 蛇形字符串转换为驼峰
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
|
Loading…
Reference in New Issue
Block a user