Method | Description | |
---|---|---|
__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}' ) |
Method | Description | |
---|---|---|
compareOTP ( string $safe, string $user ) : boolean | ||
filterOptions ( array &$options ) | ||
generateOTP ( integer $input ) : string | ||
generateURI ( string $type, array $options ) : string |
Method | Description | |
---|---|---|
getDecodedSecret ( ) : string | ||
intToByteString ( integer $int ) : string |
protected generateOTP ( integer $input ) : string | ||
$input | integer | |
return | 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}' ) |