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

Function rememberTokenHash

tests/security/auth_security_regressions.php:55–58  ·  view source on GitHub ↗
(string $token, string $key)

Source from the content-addressed store, hash-verified

53}
54
55function rememberTokenHash(string $token, string $key): string
56{
57 return hash_hmac('sha256', $token, $key);
58}
59
60function failIf(bool $cond, string $message, array &$errors): void
61{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected