Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\Crypt; |
| 6 | |
| 7 | /** |
| 8 | * Symmetric cipher contract for PDF stream/string encryption. |
| 9 | * |
| 10 | * The key is derived externally by {@see PdfKeyDerivation} — implementations |
| 11 | * only handle the raw encrypt/decrypt with a pre-derived key. |
| 12 | */ |
| 13 | interface CryptInterface |
| 14 | { |
| 15 | public function encrypt(string $data, string $key): string; |
| 16 | public function decrypt(string $data, string $key): string; |
| 17 | } |