mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-11-05 02:56:09 +00:00
8428b2d25a
* Exceptions thrown by TwoFactorAuth are now of type TwoFactorAuthException * createSecret now has extra argument $requirecryptosecure which is used to force cryptographically secure secrets * HashRNGProvider now returns string instead of "byte array" * HashRNGProvider is now initialized with two random values (for the heck of it...)
9 lines
179 B
PHP
9 lines
179 B
PHP
<?php
|
|
|
|
namespace RobThree\TwoFactorAuth\Providers\Rng;
|
|
|
|
interface IRNGProvider
|
|
{
|
|
public function getRandomBytes($bytecount);
|
|
public function isCryptographicallySecure();
|
|
} |