123456789101112131415161718 |
- package utils
- import (
- "crypto/md5"
- "encoding/hex"
- )
- //@author: [piexlmax](https://github.com/piexlmax)
- //@function: MD5V
- //@description: md5加密
- //@param: str []byte
- //@return: string
- func MD5V(str []byte) string {
- h := md5.New()
- h.Write(str)
- return hex.EncodeToString(h.Sum(nil))
- }
|