1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 12:52:27 +08:00

change crypt method to MD5

This commit is contained in:
Mongo
2017-11-01 21:46:26 +08:00
parent 4b67aa76bb
commit f7b6cff271
2 changed files with 4 additions and 5 deletions

View File

@@ -187,7 +187,7 @@ func decodeNetworkByteOrder(orderBytes []byte) (n uint32) {
}
// 计算 32 位长度的 MD5 sum
func Md5Sum(txt string) (sum string) {
func MD5Sum(txt string) (sum string) {
h := md5.New()
buf := bufio.NewWriterSize(h, 128)
buf.WriteString(txt)