removing superfluous `as`
cleaning up HMAC

only using strings for HMAC generation, as that's what it's defined for.