move_detect/server/src/Security/Csrf.php
유창욱 3f2823a764 refactor: rename cloud/ to server/ (cafe24 is web hosting, not cloud)
The PHP app runs on Cafe24 shared web hosting -- calling it 'cloud'
was misleading. Renames the directory, the edge client module, and
every doc/script/identifier that used the term.

- cloud/ -> server/ (incl. server/deploy/build_cafe24_package.sh paths)
- edge/cloudclient.py -> edge/serverclient.py, CloudClient -> ServerClient
- cloud/docs/cloud-deploy.md -> server/docs/server-deploy.md
- CLOUD_* env/config keys -> SERVER_*
- tests renamed to match

Tests: PHP 109 pass (4 skipped), pytest 167 pass. dist/ regenerated.
2026-07-20 11:30:52 +09:00

11 lines
315 B
PHP

<?php
declare(strict_types=1);
namespace App\Security;
final class Csrf
{
public static function issue(callable $randHex): string { return (string)$randHex(); }
public static function check(string $expected, string $given): bool {
return $expected !== '' && hash_equals($expected, $given);
}
}