12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- declare(strict_types=1);
- namespace OCP\Security;
- interface ISecureRandom {
-
- public const CHAR_UPPER = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
-
- public const CHAR_LOWER = 'abcdefghijklmnopqrstuvwxyz';
-
- public const CHAR_DIGITS = '0123456789';
-
- public const CHAR_SYMBOLS = '!\"#$%&\\\'()*+,-./:;<=>?@[\]^_`{|}~';
-
- public const CHAR_ALPHANUMERIC = self::CHAR_UPPER . self::CHAR_LOWER . self::CHAR_DIGITS;
-
- public const CHAR_HUMAN_READABLE = 'abcdefgijkmnopqrstwxyzABCDEFGHJKLMNPQRSTWXYZ23456789';
-
- public function generate(int $length,
- string $characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'): string;
- }
|