Protected storage
-
Anybody know how to store stuff in Windows Protected Storage? Outlook does it for email passwords, and IE stores autocomplete passwords there. But I have no luck trying to figure out the API via Google or MSDN. So am I missing something obvious, or is this an undocumented feature? Thanks, Mike
-
Anybody know how to store stuff in Windows Protected Storage? Outlook does it for email passwords, and IE stores autocomplete passwords there. But I have no luck trying to figure out the API via Google or MSDN. So am I missing something obvious, or is this an undocumented feature? Thanks, Mike
-
LsaOpenPolicy, LsaStorePrivateData are your friends. Of course, this is WinNT and variants only, no Win9x/ME stuff here!
Steve S Developer for hire
Thanks... Although I saw this in the function docs: Do not use the LSA private data functions. Instead, use the CryptProtectData and CryptUnprotectData functions. I am currently using CryptProtectData, but that doesn't actually store the data anywhere. So I wonder why the rather strongly-worded discouragement :confused: Thanks again, Mike :badger:
-
Thanks... Although I saw this in the function docs: Do not use the LSA private data functions. Instead, use the CryptProtectData and CryptUnprotectData functions. I am currently using CryptProtectData, but that doesn't actually store the data anywhere. So I wonder why the rather strongly-worded discouragement :confused: Thanks again, Mike :badger:
Beats me. After all, DCOM relies on the LSA private data functions at the moment, as passwords are stored in there. Of course, you could CryptProtectData something, and then store it using LSA :) I recently saw gadgets which combine a CF card reader and fingerprint scanner, or in one case a HDD and fingerprint scanner. That's my idea of security, although to be really safe, I'd want the scanner to be able to measure the O2 level in the finger as well, to be sure it wasn't chopped off. Paranoid? Me? Who's been talking??
Steve S Developer for hire