Appendix . How To: Use DPAPI (Machine Store) from ASP.NET

Web applications often need to store security-sensitive data, such as database connection strings and service account credentials in application configuration files. For security reasons, this type of information should never is stored in plain text and should always be encrypted prior to storage.

This How To describes how to use DPAPI from ASP.NET. This includes ASP.NET Web applications, Web services, and .NET Remoting components that are hosted in ASP.NET.

The code in this How To references DPAPI through a managed class library, the creation of which is described in "Appendix " in the Reference section of this book.

Notes

  • DPAPI can work with either the machine store or user store (which requires ...

Get Building Secure Microsoft® ASP.NET Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.