I have the following code in php:
$binKey = pack("H*", $keyTest);
$hmac = strtoupper(hash_hmac($pbx_hash, $msg, $binKey));
How can i achieve the same in android (java).
I have tried few methods available for hmac sha512 but the result of php snippet is different from that of mine.
Thanks in advance