Conditions | 2 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public static function decrypt(string $cipherText, string $key, string $iv, int $option = OPENSSL_RAW_DATA, $method = null): string |
||
24 | { |
||
25 | self::validateKey($key); |
||
26 | self::validateIv($iv); |
||
27 | |||
28 | return openssl_decrypt($cipherText, $method ?: self::getMode($key), $key, $option, $iv); |
||
29 | } |
||
58 |