PluginProbe
WindPress – Tailwind CSS integration for WordPress / 3.0.3
WindPress – Tailwind CSS integration for WordPress v3.0.3
3.2.89 3.2.88 3.2.87 3.2.86 3.2.85 3.2.84 3.2.83 3.2.82 3.2.81 trunk 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.13 3.0.14 3.0.15 3.0.16 3.0.17 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 All 143 releases
windpress / vendor / hidehalo / nanoid-php / src / CoreInterface.php

CoreInterface.php in WindPress – Tailwind CSS integration for WordPress 3.0.3, at vendor/hidehalo/nanoid-php/src/CoreInterface.php

20 lines 611 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WindPressPackages\Hidehalo\Nanoid;
4
5 interface CoreInterface
6 {
7 const SAFE_SYMBOLS = '_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
8 const MASKS = [15, 31, 63, 127, 255];
9 /**
10 * Secure random string generator with custom alphabet.
11 * Alphabet must contain 256 symbols or less. Otherwise, the generator
12 * will not be secure.
13 *
14 * @param GeneratorInterface $generator
15 * @param string $alphabet
16 * @param integer $size
17 */
18 public function random(GeneratorInterface $generator, $size, $alphabet = CoreInterface::SAFE_SYMBOLS);
19 }
20