---
title: "Can the view state be encrypted?"  
description: "Can the view state be encrypted?"  
author: "Manasavi Rajpoot"  
published: 2010-11-16  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/241/can-the-view-state-be-encrypted  
category: ".net"  
tags: [".net"]  
reading_time: 1 minute  

---

# Can the view state be encrypted?

The view state can be encrypted by setting `EnableViewStateMac` to `true` and either modifying the `<machineKey>`element in *Machine.config* to `<machineKey validation="3DES” />` or by adding the above statement to *Web.config*.

## Answers

### Answer by Manasavi Rajpoot

The view state can be encrypted by setting `EnableViewStateMac` to `true` and either modifying the `<machineKey>`element in *Machine.config* to `<machineKey validation="3DES” />` or by adding the above statement to *Web.config*.


---

Original Source: https://www.mindstick.com/interview/241/can-the-view-state-be-encrypted

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
