Documentation ¶
Index ¶
- Constants
- Variables
- func Abs64(a int64) int64
- func BytesIncBigEndian(b []byte)
- func BytesIncLittleEndian(b []byte)
- func EVPBytesToKey(password string, keyLen int) (key []byte)
- func HeadOverlap(p, b []byte) bool
- func HmacMD5(key []byte, data []byte) []byte
- func HmacSHA1(key []byte, data []byte) []byte
- func MD5Sum(d []byte) []byte
- func Max(a, b int) int
- func Min(a, b int) int
- func ResolveUDPAddr(resolver *net.Resolver, hostport string) (*net.UDPAddr, error)
- func SHA1Sum(d []byte) []byte
- func StringToUUID5(str string) string
- func StringsHas(strs []string, str string) bool
Constants ¶
View Source
const Alphabet = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM0123456789"
View Source
const Alphabet64Grpc = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM0123456789_."
Variables ¶
View Source
var Base62Encoder, _ = basex.NewEncoding(Alphabet)
View Source
var Base64GrpcEncoder, _ = basex.NewEncoding(Alphabet64Grpc)
View Source
var IntSize = 32 << (^uint(0) >> 63)
Functions ¶
func BytesIncBigEndian ¶
func BytesIncBigEndian(b []byte)
func BytesIncLittleEndian ¶
func BytesIncLittleEndian(b []byte)
func EVPBytesToKey ¶
func HeadOverlap ¶
func ResolveUDPAddr ¶
func StringToUUID5 ¶
StringToUUID5 is from https://github.com/XTLS/Xray-core/issues/158
func StringsHas ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.