Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function decrypt(string $ciphertext, string $key): string |
||
28 | { |
||
29 | try { |
||
30 | return Crypto::decryptWithPassword($ciphertext, $key); |
||
31 | } catch (CryptoException $exception) { |
||
32 | throw new EncryptionAdapterException( |
||
33 | 'Failed to decrypt cipher text with provided key', |
||
34 | 0, |
||
35 | $exception |
||
36 | ); |
||
40 |