1 | <?php |
||
12 | class Obfuscater |
||
13 | { |
||
14 | /* ----------------------------------------------------------------- |
||
15 | | Main Methods |
||
16 | | ----------------------------------------------------------------- |
||
17 | */ |
||
18 | |||
19 | /** |
||
20 | * Obfuscate a string to prevent spam-bots from sniffing it. |
||
21 | * |
||
22 | * @param string $value |
||
23 | * |
||
24 | * @return string |
||
25 | */ |
||
26 | 12 | public static function make(string $value): string |
|
39 | |||
40 | /* ----------------------------------------------------------------- |
||
41 | | Other Methods |
||
42 | | ----------------------------------------------------------------- |
||
43 | */ |
||
44 | |||
45 | /** |
||
46 | * Make safer. |
||
47 | * |
||
48 | * @param string $letter |
||
49 | * @param string $safe |
||
50 | */ |
||
51 | 6 | private static function makeSafer(string &$safe, string $letter) |
|
70 | } |
||
71 |