ASP.NET machineKey Generator

ASP.NET machineKey will reside either in your web.config or machine.config file, if you use passwordFormat=Encrypted, Hashed with ASP.NET 2.0’s Membership provider. You can generate this encryption and decryption key using CryptoServiceProvider (CSP) like RNGCryptoServiceProvider which is available under the namespace System.Security.Cryptography.

ASP.NET 2.0 machineKey:
<machineKey
validationKey="3956FE8C7F714A9D9417882D9F9C6047D379FA43C79794BAE9D34148DDFFD9D331B28D3F07636E387E058F947D7ACC7BA242127081B6B6BE0323E49CC8CCCEED"
decryptionKey="2303755D6A104E427B9D8A91BD8CA07D275BB0DF9D1B509D6EB5912D1C6C18B2"
validation="SHA1" decryption="AES"
/>

I found a wonderful tool to generate above key which implements a cryptographic Random Number Generator using the implementation provided by the cryptographic service provider (CSP).

demo link : http://www.developmentnow.com/articles/machinekey_generator.aspx

download link: http://www.developmentnow.com/articles/machineKey_src.zip

 

Advertisements

About msarm

Aspiring Enterprise Architect.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s