Test submit the request >> '; } else if ($act == 'sign_resp') { $status = getHttpVal('status', ''); $t = getHttpVal('t', ''); $info = getHttpVal('info', ''); $apiKey = base64_decode(getHttpVal('apikey', '')); $a['status'] = $status; $a['t'] = $t; if ($info != '') { $a['info'] = $info; } $hmac = sign($a, $apiKey, true); } echo '
'; echo '

Generate a request signature

'. '
' . '' . 'api key: (use your api key issued to you by Yubico in b64 format): ' . '

' . 'id (your client id):

' . 'otp:

' . '' . '

'. '

Generate a response signature

'. '
' . '' . 'api key: (put your api key here in b64 format): ' . '

' . 'Status:

'. 'Time stamp:

' . 'info:

' . '' . '

'. '
'; ?>