Thomas Levesque 5/21/2013

An easy and secure way to store a password using Data Protection API

Read Original

This technical article details a method for securely storing user credentials in client applications by leveraging the Windows Data Protection API (DPAPI) via .NET's ProtectedData class. It explains how to avoid managing encryption keys manually, demonstrates the Protect and Unprotect methods, and provides a practical approach to encrypting a string password to a Base64-encoded string for safe storage.

An easy and secure way to store a password using Data Protection API

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week