| Total Complexity | 3 |
| Total Lines | 9 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | $crypt = new class implements \Promopult\Integra\CryptInterface { |
||
| 15 | public function encode(string $s, string $ck): string { |
||
| 16 | $r = ''; |
||
| 17 | for ($i = 0; $i < strlen($s); $i++) { |
||
| 18 | $r .= chr(ord(substr($s, $i, 1)) + ord(substr($ck, ($i % strlen($ck)) - 1, 1))); |
||
| 19 | } |
||
| 20 | return base64_encode($r); |
||
| 21 | } |
||
| 22 | public function decode(string $string, string $key): string { return ''; } |
||
| 23 | }; |
||
| 24 |