This commit is contained in:
root committed 2026-10-05 18:48:47 +02:00
1 parent ae54fabd6b
commit 1a2e1cc33f
5 files changed
+27 -18

No files matched your search

+6 -4
View File
@@ -6,9 +6,11 @@
//echo $_SERVER["HTTP_X_API_KEY"];
$string = '{"user":"marc", "auth":true}';
$secret = "281361f952279bd9530734c67ed04aed2756f0fe00cb998cd6c28324f491484c";
//$string = '{"user":"marc", "auth":true}';
//$secret = "281361f952279bd9530734c67ed04aed2756f0fe00cb998cd6c28324f491484c";
echo "Hash: " . hash_hmac("sha256", $string, $secret);
//echo "Hash: " . hash_hmac("sha256", $string, $secret);
echo "Decode: " . hash_equals($string, $secret);
//echo "Decode: " . hash_equals($string, $secret);
print_r(PDO::getAvailableDrivers());