Метод | Описание | |
---|---|---|
__construct ( string $label, string | null $secret, string $digest, integer $digits ) | OTP constructor. | |
at ( $input ) | ||
getQrCodeUri ( $uri = 'https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl={PROVISIONING_URI}', $placeholder = '{PROVISIONING_URI}' ) |
Метод | Описание | |
---|---|---|
compareOTP ( string $safe, string $user ) : boolean | ||
filterOptions ( array &$options ) | ||
generateOTP ( integer $input ) : string | ||
generateURI ( string $type, array $options ) : string |
Метод | Описание | |
---|---|---|
getDecodedSecret ( ) : string | ||
intToByteString ( integer $int ) : string |
protected generateOTP ( integer $input ) : string | ||
$input | integer | |
Результат | string | The OTP at the specified input |
public getQrCodeUri ( $uri = 'https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl={PROVISIONING_URI}', $placeholder = '{PROVISIONING_URI}' ) |