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

Function readEncryptedJson

tests/security/auth_security_regressions.php:44–53  ·  view source on GitHub ↗
(string $path, string $key)

Source from the content-addressed store, hash-verified

42}
43
44function readEncryptedJson(string $path, string $key): array
45{
46 if (!file_exists($path)) {
47 return [];
48 }
49 $raw = file_get_contents($path);
50 $dec = decryptForTest($raw, $key);
51 $data = json_decode($dec, true);
52 return is_array($data) ? $data : [];
53}
54
55function rememberTokenHash(string $token, string $key): string
56{

Callers 1

Calls 1

decryptForTestFunction · 0.85

Tested by

no test coverage detected