token

package
v0.0.0-...-8e31401 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: Unlicense Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultUserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(cipherText string, password string) (string, error)

func DefaultEvpKDF

func DefaultEvpKDF(password []byte, salt []byte) (key []byte, iv []byte, err error)

func Encrypt

func Encrypt(data string, key string) string

func GetBda

func GetBda(userAgent string, referer string, location string) string

func GetMurmur128String

func GetMurmur128String(input string, seed uint64) string

func GetOpenAIToken

func GetOpenAIToken(client tlsclient.HttpClient) (string, error)

func MapSlice

func MapSlice(a []string, f func(string) string) []string

func NewWithSeed

func NewWithSeed(seed uint64) *digest

func PKCS5Padding

func PKCS5Padding(src []byte, blockSize int) []byte

func Random

func Random() string

Types

type Bda

type Bda struct {
	Key   string      `json:"key"`
	Value interface{} `json:"value"`
}

type EncryptionData

type EncryptionData struct {
	Ct string `json:"ct"`
	Iv string `json:"iv"`
	S  string `json:"s"`
}

func AesEncrypt

func AesEncrypt(content string, password string) (*EncryptionData, error)

type Fingerprint

type Fingerprint map[string]interface{}

type GetTokenResult

type GetTokenResult struct {
	ChallengeURL          string `json:"challenge_url"`
	ChallengeURLCDN       string `json:"challenge_url_cdn"`
	ChallengeURLCDNSRI    string `json:"challenge_url_cdn_sri"`
	DisableDefaultStyling bool   `json:"disable_default_styling"`
	IFrameHeight          int    `json:"iframe_height"`
	IFrameWidth           int    `json:"iframe_width"`
	KBio                  bool   `json:"kbio"`
	MBio                  bool   `json:"mbio"`
	NoScript              string `json:"noscript"`
	TBio                  bool   `json:"tbio"`
	Token                 string `json:"token"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL