This article is a mirror article of machine translation, please click here to jump to the original article.

View: 31648|Reply: 0

[ASP.NET] Encrypt data with ASP.NET machineKey

[Copy link]
Posted on 1/23/2021 12:22:41 PM | | |
Since ASP.NET already maintain MachineKeys for various things (Forms authentication cookies, ViewState encryption, etc.), how do I use machineKeys to encrypt/decrypt my data?

machineKey introduced

Configure keys for form authentication, encryption and decryption of cookie data and view state data, and validation of out-of-process session state identities. This section can be declared at the machine, site, and application level, but not at the subdirectory level.

The hyperlink login is visible.

Use. NET Framwork 4.5, you should use the new API:







Previous:ASP.NET the IIS 10 AlwaysRunning preloading feature of MVC 5
Next:View app status and statistics ASP.NET Core
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com