Sign the request'; } $id = getHttpVal('id', 0); if ($id < 1) { echo 'Client id is missing!'; exit; } $otp = getHttpVal('otp', ''); $t = getHttpVal('t', ''); $apiKey = base64_decode($apiKey64); $a['id'] = $id; $a['otp'] = $otp; if ($t != '') { $a['t'] = $t; } $hmac = sign($a, $apiKey, true); // echo 'Test submit the request >> '; } else if ($act == 'sign_resp') { if ($apiKey64 == '') { echo 'API key cannot be empty!'; exit; } else { echo '
Generate a request signature'. ''. ' | ';
echo 'Generate a response signature'. ''. ' |