update the hmac generation to use the seq for a better key