(string $srcPath, string $destPath)
| 309 | } |
| 310 | |
| 311 | public static function decryptFileToPath(string $srcPath, string $destPath): void |
| 312 | { |
| 313 | $out = @fopen($destPath, 'wb'); |
| 314 | if ($out === false) { |
| 315 | throw new \RuntimeException('Unable to open destination file for decryption.'); |
| 316 | } |
| 317 | try { |
| 318 | self::streamDecrypted($srcPath, $out); |
| 319 | } finally { |
| 320 | @fclose($out); |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | public static function decryptFileInPlace(string $path): void |
| 325 | { |
no test coverage detected