mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-10 06:16:53 -05:00
16 lines
249 B
Go
16 lines
249 B
Go
package user
|
|
|
|
import (
|
|
"crypto/md5"
|
|
)
|
|
|
|
func Int64Hash(value int64) []byte {
|
|
md5hash := md5.New()
|
|
buffer := int64ToBytes(value)
|
|
md5hash.Write(buffer)
|
|
md5hash.Write(buffer)
|
|
md5hash.Write(buffer)
|
|
md5hash.Write(buffer)
|
|
return md5hash.Sum(nil)
|
|
}
|