Files
v2ray-core/proxy/vmess/protocol/user/hash.go
T
2016-01-12 11:38:43 +01:00

16 lines
186 B
Go

package user
import (
"crypto/hmac"
"crypto/md5"
"hash"
)
func TimestampHash() hash.Hash {
return md5.New()
}
func IDHash(key []byte) hash.Hash {
return hmac.New(md5.New, key)
}