Documentation
¶
Index ¶
- func Base64Decode(text string) string
- func Base64Encode(text string) string
- func ConvertToJsonSingleLine(input string) (string, error)
- func CurrentUnixTime(useUtc bool) int64
- func DeriveKeyFromPassword(password, email string, kdfConfig map[string]int) []byte
- func Distinct(input []string) []string
- func DoubleSha256(data []byte) []byte
- func FormatInt(n int) string
- func FormatInt64(n int64) string
- func FromBufferToB64(data []byte) string
- func FromUtf8ToBytes(str string) []byte
- func GenerateOAuth2Params(length int) (state, codeVerifier, codeChallenge string, err error)
- func GeneratePKCEPair() (codeVerifier string, codeChallenge string)
- func GenerateRandomHex(length int) (string, error)
- func GetCurrentISO8601Datetime() string
- func GetRandomChromeProfile() (string, profiles.ClientProfile)
- func GetRandomDesktopProfile() (string, profiles.ClientProfile)
- func GetRandomIOSProfile() (string, profiles.ClientProfile)
- func GetRandomProfile() (string, profiles.ClientProfile)
- func GetValuesByKey(jsonStr, path string) []string
- func HMAC(key, input string, hashType crypto.Hash, b64 bool) string
- func Hash(input string, hasher hash.Hash) string
- func HashMasterKey(password string, key []byte) string
- func InitTLS(proxy string, timeout int, profile profiles.ClientProfile) tls_client.HttpClient
- func InitTLSOF(proxy string, timeout int, profile profiles.ClientProfile) tls_client.HttpClient
- func InitTLSProxyless(timeout int, profile profiles.ClientProfile) tls_client.HttpClient
- func InitTLSSkipVerify(proxy string, timeout int, profile profiles.ClientProfile) tls_client.HttpClient
- func JSON(source, field string, recursion bool) []string
- func JToken(JSON, jToken string, recursive bool) []string
- func JsonParserGetValuesByKey(data interface{}, keys []string) []string
- func LR(source, left, right string, recursion bool) []string
- func MakeMasterKey(password, email string, kdfConfig map[string]int) []byte
- func MakePreloginKey(masterPassword, email string, iterations int) []byte
- func MakeRequest(TLS tls_client.HttpClient, uri, content, method string, headers http.Header) (*http.Response, error)
- func MakeRequestCookies(TLS tls_client.HttpClient, url, content, method string, headers http.Header, ...) (http.Response, error)
- func PBKDF2(password, salt []byte, algorithm string, iterations int) []byte
- func PBKDF2Hash(credentials map[string]string, iterations int) string
- func ParseProxyFasthttp(proxy string) string
- func ParseProxyTLS(proxy string) string
- func QueryJsonToken(jsonStr, jToken, prefix, suffix string, urlEncodeOutput bool) string
- func RSAEncrypt(data, modulus, exponent string) (string, error)
- func RandomAndroidUserAgent() string
- func RandomString(input string) string
- func RandomUserAgent() string
- func RegexParse(input, pattern, outputFormat string, multiline bool) ([]string, error)
- func RemoveCookieByName(cookies []*http.Cookie, namesToRemove ...string) []*http.Cookie
- func RemoveElement(s []string, r string) []string
- func ReverseString(s string) string
- func SHA1(input string) string
- func SHA256(input string) string
- func SolveFunCaptcha(siteUrl, siteKey, subdomainHost, capKey string) (string, error)
- func SolveHCaptcha(siteKey, siteUrl string, isInvisible bool, userAgent, capKey string) (string, error)
- func SolveImageCaptcha(imageData, capKey string) (string, error)
- func SolveRecaptchaV2(siteKey, siteUrl string, isInvisible, isEnterprise bool, ...) (string, error)
- func SolveRecaptchaV2EnterpriseNextCaptcha(siteKey, siteUrl string, isInvisible bool, ...) (string, error)
- func SolveRecaptchaV3(siteKey, siteUrl, siteAction string, isInvisible, isEnterprise bool, ...) (string, error)
- func SolveTurnstile(siteKey, siteUrl, capKey string) (string, error)
- func UnixTimeToDate(timestamp int64, format string) string
- func Zip(a, b []string, format string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func ConvertToJsonSingleLine ¶
func CurrentUnixTime ¶
func DeriveKeyFromPassword ¶
DeriveKeyFromPassword derives a master key from password and email using PBKDF2.
func DoubleSha256 ¶
func FormatInt64 ¶
func FromBufferToB64 ¶
FromBufferToB64 converts a byte slice to a base64 string.
func FromUtf8ToBytes ¶
FromUtf8ToBytes converts a UTF-8 string to a byte slice.
func GenerateOAuth2Params ¶
func GeneratePKCEPair ¶
Function to generate a code verifier and code challenge
func GenerateRandomHex ¶
func GetCurrentISO8601Datetime ¶
func GetCurrentISO8601Datetime() string
func GetRandomChromeProfile ¶
func GetRandomChromeProfile() (string, profiles.ClientProfile)
func GetRandomDesktopProfile ¶
func GetRandomDesktopProfile() (string, profiles.ClientProfile)
func GetRandomIOSProfile ¶
func GetRandomIOSProfile() (string, profiles.ClientProfile)
func GetRandomProfile ¶
func GetRandomProfile() (string, profiles.ClientProfile)
func GetValuesByKey ¶
func HashMasterKey ¶
HashMasterKey hashes a master key using PBKDF2 and a specified purpose.
func InitTLS ¶
func InitTLS(proxy string, timeout int, profile profiles.ClientProfile) tls_client.HttpClient
func InitTLS(proxy string, timeout int, profile profiles.ClientProfile) tls_client.HttpClient { cookieJarOptions := []tls_client.CookieJarOption{ tls_client.WithAllowEmptyCookies(), } jar := tls_client.NewCookieJar(cookieJarOptions...) options := []tls_client.HttpClientOption{ tls_client.WithTimeoutSeconds(timeout), // tls_client.WithNotFollowRedirects(), // tls_client.WithDebug(), tls_client.WithCookieJar(jar), // tls_client.WithRandomTLSExtensionOrder(), tls_client.WithClientProfile(profile), tls_client.WithProxyUrl(proxy), } client, err := tls_client.NewHttpClient(nil /*tls_client.NewDebugLogger(tls_client.NewLogger())*/, options...) if err != nil { fmt.Println("TLS Error: " + err.Error()) return nil } return client }
func InitTLSOF ¶
func InitTLSOF(proxy string, timeout int, profile profiles.ClientProfile) tls_client.HttpClient
func InitTLSProxyless ¶
func InitTLSProxyless(timeout int, profile profiles.ClientProfile) tls_client.HttpClient
func InitTLSSkipVerify ¶
func InitTLSSkipVerify(proxy string, timeout int, profile profiles.ClientProfile) tls_client.HttpClient
func JsonParserGetValuesByKey ¶
JsonParserGetValuesByKey function in Go
func MakeMasterKey ¶
MakeMasterKey creates a master key using password and email.
func MakePreloginKey ¶
MakePreloginKey makes a pre-login key using the user's master password and email.
func MakeRequest ¶
func MakeRequest(TLS tls_client.HttpClient, uri, content, method string, headers http.Header) (*http.Response, error)
func MakeRequestCookies ¶
func MakeRequestCookies(TLS tls_client.HttpClient, url, content, method string, headers http.Header, cookies []http.Cookie) (http.Response, error)
}
func PBKDF2Hash ¶
LogIn performs login by deriving and hashing keys based on user credentials.
func ParseProxyFasthttp ¶
func ParseProxyTLS ¶
func QueryJsonToken ¶
func RSAEncrypt ¶
func RandomAndroidUserAgent ¶
func RandomAndroidUserAgent() string
func RandomString ¶
RandomString generates a random string given a mask
func RandomUserAgent ¶
func RandomUserAgent() string
func RegexParse ¶
func RemoveCookieByName ¶
func RemoveElement ¶
func ReverseString ¶
func SolveFunCaptcha ¶
func SolveHCaptcha ¶
func SolveImageCaptcha ¶
func SolveRecaptchaV2 ¶
func SolveRecaptchaV3 ¶
func SolveTurnstile ¶
func UnixTimeToDate ¶
Types ¶
This section is empty.