I have in PHP this method to call a security web service:
// token generator; date is UTC/GMT
$tokenNewInputData = date("Y-m-d");
$tokenNew = hash_hmac('sha256', $tokenNewInputData, KEY);
echo ‘token: ‘.$tokenNew;
where KEY it's "password" text.
I must use the same method into Android app for generate a security code in the same way and add this to a string for get call.
Can you help me please for an example to traslate this PHP code into Android code? Thanks.