Documentation
¶
Index ¶
- func AesDecrypt(baseText string, password string, fallbackPass string) (string, error)
- func Decrypt(data string, password string, fallbackPass string) string
- func DefaultEvpKDF(password []byte, salt []byte) (key []byte, iv []byte, err error)
- func DownloadChallenge(urls []string, b64 bool) ([]string, error)
- func Encrypt(data string, key string) string
- func EvpKDF(password []byte, salt []byte, keySize int, iterations int, ...) ([]byte, error)
- func GetOpenAIAuthToken(puid string, proxy string) (string, error)
- func GetOpenAIAuthTokenWithBx(bx string, puid string, proxy string) (string, error)
- func GetOpenAIToken(puid string, proxy string) (string, error)
- func GetOpenAITokenWithBx(bx string, puid string, proxy string) (string, error)
- func PKCS5Padding(src []byte, blockSize int) []byte
- func PKCS5UnPadding(src []byte) []byte
- func SetTLSClient(cli *tls_client.HttpClient)
- type Challenge
- type ConciseChallenge
- type HARData
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func DefaultEvpKDF ¶
func EvpKDF ¶
func EvpKDF(password []byte, salt []byte, keySize int, iterations int, hashAlgorithm string) ([]byte, error)
https://stackoverflow.com/questions/27677236/encryption-in-javascript-and-decryption-with-php/27678978#27678978 https://github.com/brix/crypto-js/blob/8e6d15bf2e26d6ff0af5277df2604ca12b60a718/src/evpkdf.js#L55
func GetOpenAITokenWithBx ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
https://stackoverflow.com/questions/41579325/golang-how-do-i-decrypt-with-des-cbc-and-pkcs7
func SetTLSClient ¶
func SetTLSClient(cli *tls_client.HttpClient)
Types ¶
type Challenge ¶
type Challenge struct {
SessionToken string `json:"session_token"`
ChallengeID string `json:"challengeID"`
ChallengeURL string `json:"challengeURL"`
AudioChallengeURLs []string `json:"audio_challenge_urls"`
AudioGameRateLimited interface{} `json:"audio_game_rate_limited"`
Sec int `json:"sec"`
EndURL interface{} `json:"end_url"`
GameData struct {
GameType int `json:"gameType"`
GameVariant string `json:"game_variant"`
InstructionString string `json:"instruction_string"`
CustomGUI struct {
ChallengeIMGs []string `json:"_challenge_imgs"`
} `json:"customGUI"`
} `json:"game_data"`
GameSID string `json:"game_sid"`
SID string `json:"sid"`
Lang string `json:"lang"`
StringTablePrefixes []interface{} `json:"string_table_prefixes"`
StringTable map[string]string `json:"string_table"`
EarlyVictoryMessage interface{} `json:"earlyVictoryMessage"`
FontSizeAdjustments interface{} `json:"font_size_adjustments"`
StyleTheme string `json:"style_theme"`
}
type ConciseChallenge ¶
type Session ¶
type Session struct {
Sid string `json:"sid"`
SessionToken string `json:"session_token"`
Hex string `json:"hex"`
ChallengeLogger challengeLogger `json:"challenge_logger"`
Challenge Challenge `json:"challenge"`
ConciseChallenge ConciseChallenge `json:"concise_challenge"`
Headers http.Header `json:"headers"`
}
func StartChallenge ¶
func (*Session) RequestChallenge ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.