Reorganize code by removing unused files, restructuring package organization, and updating import references to new paths. This simplifies handling of smart and protocol-related operations, improves maintainability, and eliminates redundancy.
16 lines
224 B
Go
16 lines
224 B
Go
package utils
|
|
|
|
import (
|
|
"crypto/hmac"
|
|
"crypto/md5"
|
|
"encoding/hex"
|
|
)
|
|
|
|
func GenerateVerifyKey(key string) string {
|
|
mac := hmac.New(md5.New, []byte(key))
|
|
|
|
mac.Write([]byte(key))
|
|
|
|
return hex.EncodeToString(mac.Sum(nil))
|
|
}
|