mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-25 11:58:19 +02:00
Added SubSub support for contact verification
This commit is contained in:
parent
f3d1fa22e6
commit
8def259c5f
5 changed files with 678 additions and 26 deletions
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue