- hash_hmac: documentation ( source)
- urldecode: documentation ( source)
<?php
$privateKey = 'a8d9d8ad02f36b7845035b3b7df57b96';
echo $correctToken = hash_hmac('sha256', $this->getRequest()->getMethod() . urldecode('http://mjanik.vgnett.no/rose/rest/api/v1/customer'), $privateKey);