| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | protected function decryption(string $encryption): string |
||
| 29 | { |
||
| 30 | if(str_contains($encryption,'bArRa')){ |
||
| 31 | $encryption = str_replace('bArRa', '/', $encryption); |
||
| 32 | } |
||
| 33 | $encryption = base64_decode($encryption); |
||
| 34 | [$encryption, $decryption_key, $encryption_iv] = explode(".",$encryption); |
||
| 35 | return openssl_decrypt ($encryption, CIPHERING, |
||
| 36 | base64_encode(DECRYPT_KEY) . $decryption_key, iv: $encryption_iv); |
||
| 37 | |||
| 39 | } |