Documentation ¶
Index ¶
- Constants
- Variables
- func Abs64(a int64) int64
- func Base64StdDecode(s string) (string, error)
- func Base64UrlDecode(s string) (string, error)
- func BoolToString(b bool) string
- func BytesIncBigEndian(b []byte)
- func BytesIncLittleEndian(b []byte)
- func Deduplicate(list []string) []string
- func EVPBytesToKey(password string, keyLen int) (key []byte)
- func GenerateCertChainHash(rawCerts [][]byte) (chainHash []byte)
- func GetTagFromLinkLikePlaintext(link string) (tag string, afterTag string)
- 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 SetValue(values *url.Values, key string, value string)
- 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 Base64StdDecode ¶
func Base64UrlDecode ¶
func BoolToString ¶
func BytesIncBigEndian ¶
func BytesIncBigEndian(b []byte)
func BytesIncLittleEndian ¶
func BytesIncLittleEndian(b []byte)
func Deduplicate ¶
func EVPBytesToKey ¶
func GenerateCertChainHash ¶
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.