(string $path, array $payload, string $key)
| 35 | } |
| 36 | |
| 37 | function writeEncryptedJson(string $path, array $payload, string $key): void |
| 38 | { |
| 39 | $json = json_encode($payload, JSON_PRETTY_PRINT); |
| 40 | $enc = encryptForTest($json, $key); |
| 41 | file_put_contents($path, $enc, LOCK_EX); |
| 42 | } |
| 43 | |
| 44 | function readEncryptedJson(string $path, string $key): array |
| 45 | { |
no test coverage detected