hashHeader() flips the bytes