feat: docs api design
This commit is contained in:
11
pkg/utils/hash.go
Normal file
11
pkg/utils/hash.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"crypto/md5"
|
||||
"encoding/hex"
|
||||
)
|
||||
|
||||
func MD5(d []byte) string {
|
||||
hash := md5.Sum(d)
|
||||
return hex.EncodeToString(hash[:])
|
||||
}
|
||||
Reference in New Issue
Block a user