MCPcopy Create free account
hub / github.com/error311/FileRise / writeEncryptedJson

Function writeEncryptedJson

tests/security/auth_security_regressions.php:37–42  ·  view source on GitHub ↗
(string $path, array $payload, string $key)

Source from the content-addressed store, hash-verified

35}
36
37function 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
44function readEncryptedJson(string $path, string $key): array
45{

Callers 1

Calls 1

encryptForTestFunction · 0.85

Tested by

no test coverage detected