Added SubSub support for contact verification

This commit is contained in:
Pinga 2025-03-21 13:13:09 +02:00
parent f3d1fa22e6
commit 8def259c5f
5 changed files with 678 additions and 26 deletions

View file

@ -1148,4 +1148,10 @@ function isValidHostname($hostname) {
}
return true;
}
// HMAC Signature generator
function sign($ts, $method, $path, $body, $secret_key) {
$stringToSign = $ts . strtoupper($method) . $path . $body;
return hash_hmac('sha256', $stringToSign, $secret_key);
}