aspnet_setreg with other data

C

chandy

I can use aspnet_setreg to securely store the credentials to be used by
the ASPNET identity, but can the same technique be used to store data
for other custom config keys? i.e., does ASP.Net understand what to do
if I have this in the web.config?

<appSettings>
<add key="myUser"
value="registry:HKLM\Software\SOME\REG\PATH\ASPNET_SETREG,userName"/>
<add key="myPassword"
value="registry:HKLM\Software\SOME\REG\PATH\ASPNET_SETREG,password"/>
</appSettings>

Will that produce the expected values?

Chandy
 
T

Tom McDonnell

Will that produce the expected values?

Why not try it! However I think this syntax is specialised for the
<identity> element, and uses the Data Protection API for encryption.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top