jiangshuai
2023-09-27 65f900c88f0f90ee3b29e9b985723b8f94aaeb0b
1
2
3
4
5
6
7
8
9
10
11
12
13
package encrypt
 
import (
    "crypto/md5"
    "encoding/hex"
)
 
// MD5V md5加密
func MD5V(str []byte, b ...byte) string {
    h := md5.New()
    h.Write(str)
    return hex.EncodeToString(h.Sum(b))
}