Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What encryption method does the .NET FormsAuthentication.Encrypt() method use?

What encryption method does the .NET FormsAuthentication.Encrypt() method use?

There's no mention in the MSDN article:

http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.encrypt.aspx

Thanks.

like image 613
UpTheCreek Avatar asked Oct 29 '09 09:10

UpTheCreek


1 Answers

This is defined by the machineKey element:

<system.web>
    <machineKey validationKey="..." 
                decryptionKey="..." 
                validation="SHA1"
                decryption="AES" />
</system.web>
like image 68
Darin Dimitrov Avatar answered Sep 23 '22 00:09

Darin Dimitrov