Documentation
¶
Index ¶
- func AesDecrypt(cryted string, key string) ([]byte, error)
- func AesEncrypt(origData []byte, key string) (string, error)
- func BrowserOpen(url string) error
- func DesDecrypt(decrypted string, key []byte) (string, error)
- func DesEncrypt(text string, key []byte) (string, error)
- func PKCS7Padding(ciphertext []byte, blocksize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func RandStringDigit(n int) string
- func RandStringWordC(n int) string
- func RandStringWordL(n int) string
- func RandStringWordU(n int) string
- func RandomString(n int) string
- func ZeroPadding(ciphertext []byte, blockSize int) []byte
- func ZeroUnPadding(origData []byte) []byte
- type CfIP
- type GeoIP
- type SchemaVLESS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesEncrypt ¶
https://tech.mojotv.cn/2019/06/28/golang-crypt#svekr key length must be 16/24/32
func BrowserOpen ¶
func RandStringDigit ¶
func RandStringWordC ¶
func RandStringWordL ¶
func RandStringWordU ¶
func RandomString ¶
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
type CfIP ¶
type SchemaVLESS ¶
type SchemaVLESS struct { DstProtocol string //tcp or udp Version byte // contains filtered or unexported fields }
func VlessParse ¶
func VlessParse(buf []byte) (*SchemaVLESS, error)
VlessParse https://xtls.github.io/development/protocols/vless.html
func (SchemaVLESS) AddrUdp ¶
func (h SchemaVLESS) AddrUdp() *net.UDPAddr
func (SchemaVLESS) DataTcp ¶
func (h SchemaVLESS) DataTcp() []byte
func (SchemaVLESS) DataUdp ¶
func (h SchemaVLESS) DataUdp() []byte
func (SchemaVLESS) HostIP ¶
func (h SchemaVLESS) HostIP() net.IP
func (SchemaVLESS) HostPort ¶
func (h SchemaVLESS) HostPort() string
func (SchemaVLESS) Logger ¶
func (h SchemaVLESS) Logger() *slog.Logger
func (SchemaVLESS) UUID ¶
func (h SchemaVLESS) UUID() string
Click to show internal directories.
Click to hide internal directories.