mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-01 07:35:58 +08:00
@@ -0,0 +1,18 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"Open_IM/pkg/common/config"
|
||||
"crypto/md5"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"io"
|
||||
)
|
||||
|
||||
func GetSign(paramsStr string) string {
|
||||
h := md5.New()
|
||||
io.WriteString(h, paramsStr)
|
||||
io.WriteString(h, config.Config.Push.Mob.AppSecret)
|
||||
fmt.Printf("%x", h.Sum(nil))
|
||||
|
||||
return hex.EncodeToString(h.Sum(nil))
|
||||
}
|
||||
Reference in New Issue
Block a user