Rewrite HMAC Authentication