Documentation

Algorithm
in package

TikTok-focused algorithms

Table of Contents

Methods

challenge()  : string
TikTok's new JS challenge that may show up
deviceId()  : string
Generates random device ID
randomNumber()  : string
Generates a random number as a string
randomString()  : string
Generates a random string (a-z, A-Z, 0-9)
uRShift()  : int
Does a bitwise unsigned right shift, used only for `Algorithm::challenge`

Methods

challenge()

TikTok's new JS challenge that may show up

public static challenge(string $type, string $key) : string

Maybe it isn't being shown up anymore?

Parameters
$type : string
$key : string
Return values
string

deviceId()

Generates random device ID

public static deviceId() : string
Return values
string

randomNumber()

Generates a random number as a string

public static randomNumber([int $digits = 8 ]) : string
Parameters
$digits : int = 8

nº of digits

Return values
string

Result

randomString()

Generates a random string (a-z, A-Z, 0-9)

public static randomString([int $length = 8 ]) : string
Parameters
$length : int = 8

nº of characters

Return values
string

Result

uRShift()

Does a bitwise unsigned right shift, used only for `Algorithm::challenge`

public static uRShift(int $a, int $b) : int

See Algorithm::challenge

Parameters
$a : int
$b : int
Return values
int

Result


        
On this page

Search results