ASP.NET Machine Key Generator
Generate secure <machineKey> values for your web.config file.
Each page load generates a fresh unique key pair.
Your Generated Machine Key
Copy the XML below and paste it into the <system.web> section of your web.config:
<machineKey
validationKey="575EB3CDE91DE885DD090F10C492184F615B7AA029892AF68C3C3994ABAC3805"
decryptionKey="8BC017DCB04BB9C6EBE4715C5D0C69E20ACA2719E19B1BB9"
validation="SHA1"
decryption="AES" />
Usage Notes
- Use the same machineKey on all servers in a web farm to ensure consistent encryption.
- For maximum security, use
validation="HMACSHA256"instead ofSHA1. - Never share your machineKey — it protects Forms Authentication tickets and ViewState.
- Regenerate keys whenever a server is compromised.