Website-Stand vom 14.10.2026 veroeffentlichen

This commit is contained in:
Tim Büning committed 2026-10-14 12:54:19 +02:00
commit 4ae8cea7b1
158 files changed
+46887

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
/**
* Endpunkt für das ALTCHA-Widget (GET /altcha-challenge.php).
* Liefert eine frische Proof-of-Work-Challenge als JSON.
*/
require_once __DIR__ . '/altcha-config.php';
require_once __DIR__ . '/altcha-lib.php';
header('Content-Type: application/json; charset=utf-8');
header('Cache-Control: no-store');
header('X-Content-Type-Options: nosniff');
echo json_encode(
altcha_create_challenge(
ALTCHA_HMAC_KEY,
CHALLENGE_MAX_NUMBER,
time() + CHALLENGE_EXPIRES_SECONDS
)
);