feat: manually mirror opencoze's code from bytedance
Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
11
backend/pkg/lang/crypto/md5.go
Normal file
11
backend/pkg/lang/crypto/md5.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package crypto
|
||||
|
||||
import (
|
||||
"crypto/md5"
|
||||
"encoding/hex"
|
||||
)
|
||||
|
||||
func MD5HexValue(input string) string {
|
||||
md5Hash := md5.Sum([]byte(input))
|
||||
return hex.EncodeToString(md5Hash[:])
|
||||
}
|
||||
Reference in New Issue
Block a user