.NET FormsAuthentication.Encrypt()方法使用什么加密方法? [英] What encryption method does the .NET FormsAuthentication.Encrypt() method use?
本文介绍了.NET FormsAuthentication.Encrypt()方法使用什么加密方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
MSDN文章中没有提到:
http:// msdn .microsoft.com / en-us / library / system.web.security.formsauthentication.encrypt.aspx
谢谢。
解决方案
这是由 machineKey 元素:
< system.web>
< machineKey validationKey =...
decryptKey =...
validation =SHA1
decrypt =AES/>
< /system.web>
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.
解决方案
This is defined by the machineKey element:
<system.web>
<machineKey validationKey="..."
decryptionKey="..."
validation="SHA1"
decryption="AES" />
</system.web>
这篇关于.NET FormsAuthentication.Encrypt()方法使用什么加密方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文