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
3declare(strict_types=1);
4
5namespace 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 */
13interface CryptInterface
14{
15    public function encrypt(string $data, string $key): string;
16    public function decrypt(string $data, string $key): string;
17}