views:

48

answers:

1

Hi,

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.

+3  A: 

This is defined by the machineKey element:

<system.web>
    <machineKey validationKey="..." 
                decryptionKey="..." 
                validation="SHA1"
                decryption="AES" />
</system.web>
Darin Dimitrov