FormsAuthentication中使用的machineKey / validationKey在哪里?

时间:2011-12-07 15:22:08

标签: asp.net forms-authentication machinekey

MSDN : machineKey

  

配置用于加密,解密和验证表单身份验证数据和视图状态数据以及进程外会话状态识别的算法和密钥

具体来说,FormsAuthentication中哪些方法使用validationKey和encryptionKey值?

1 个答案:

答案 0 :(得分:3)

FormsAuthentication中使用validationKeyencryptionKey的方法是FormsAuthentication.EncryptFormsAuthentication.Decrypt方法。

One more link explaining how it works.