Documentation ¶
Index ¶
- func BinToHex(Bin []byte) string
- func BinToHex2(Bin *[]byte) string
- func Decrypt(key, bin []byte) (ret []byte)
- func Encrypt(key, bin []byte) []byte
- func GenECDHKey() (PublicKey, ShareKey []byte)
- func GetRand32() uint32
- func GetRandomBin(l int) []byte
- func GetServerCurTime() int64
- func Guid2Md5Bytes(GuidData string) []byte
- func HexToBin(HexData string) []byte
- func IntToIp(i int32) string
- func IpToInt(Ip string) int64
- func NewCipher(key []byte) *teaCipher
- func RandUint32(min, max uint32) uint32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenECDHKey ¶
func GenECDHKey() (PublicKey, ShareKey []byte)
func GetRandomBin ¶
func GetServerCurTime ¶
func GetServerCurTime() int64
func Guid2Md5Bytes ¶
func RandUint32 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.