. * * * The author of this software is Mashape, Inc. * For any question or feedback please contact us at: support@mashape.com * */ class AuthUtil { public static function generateAuthenticationHeader($publicKey, $privateKey) { $hash = hash_hmac("sha1", $publicKey, $privateKey); $header = "Proxy-Authorization: " . base64_encode($publicKey . ":" . $hash) . "\r\n"; return $header; } } ?>