How to protect the view state from tampering

We can protect the view state from tampering by encrypting the contents of the view state as well as we need to make the enableviewstatemac = true in the page level which will do the complete encryption