Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Securely Saving Windows Auto Logon Password in .NET

$
0
0

I'm trying to securely store a password for autologon in Windows through .NET.  There are lots of examples out there about how to securely store the password in C++ or about how to *insecurely* store the password in .NET.  But I can't find any examples that do it securely in .NET.

Here's the article that explains how to do this insecurely:
http://msdn.microsoft.com/en-us/library/aa378750(v=VS.85).aspx

And in it there's a link to how to do it securely using C++:
http://msdn.microsoft.com/en-us/library/aa378826(v=VS.85).aspx

I've found that supposedly System.Security.Cryptography.ProtectedData can be used to replace the call to LsaStorePriveData, but I can't figure out what to do with the encrypted password... where to store it, etc.

I hope that the fact that this question land squarely between the Windows and .NET forums won't cause it to fall through the cracks... I really don't want to have to just write the plaintext password to the registry (insecure), which is my only alternative without some help...

TIA.


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>