1 | <?php |
||
5 | class NonceGenerator implements NonceGeneratorInterface |
||
6 | { |
||
7 | /** |
||
8 | * {@inheritDoc} |
||
9 | */ |
||
10 | public function generate($length = 32) |
||
22 | |||
23 | /** |
||
24 | * Get cryptographically secure base64 encoded random bytes. |
||
25 | * |
||
26 | * @param int $length |
||
27 | * @return string |
||
28 | */ |
||
29 | public function base64EncodedRandomBytes($length) |
||
33 | |||
34 | /** |
||
35 | * Extract the alphanumeric characters from base64 encoded string. |
||
36 | * |
||
37 | * @param string $string |
||
38 | * @return string |
||
39 | */ |
||
40 | public function extractAlphaNumericFromBase64EncodedString($string) |
||
44 | } |
||
45 |