final class TotpSecretGenerator (View source)

Creates new 160-bit TOTP credentials using PHP's operating-system CSPRNG only.

Methods

Generates the framework minimum-strength secret and never falls back to a weaker random source.

Details

generate

TotpSecret generate()

Generates the framework minimum-strength secret and never falls back to a weaker random source.

Return Value

TotpSecret

Exceptions

TotpSecretGenerationException