Asp.Net security
-
I m making an application using ASP.net and I want to use the web.config files for defining users.But the problem with web.config is that I have to always feed all users and password manually bkz I m using Sql database for keeping the users.Can I have any way through I can create web.config file in runtime Mean I will when run the application the default web.config file will be raised with default values and then I will create a web service which will automaticlly create the web.config file and fill all the users and password in it. Please do suggest me can it be possible.I can not use manually web.config bkz in this case I have to always feed daily users and password in it. Thanks Jitendra
-
I m making an application using ASP.net and I want to use the web.config files for defining users.But the problem with web.config is that I have to always feed all users and password manually bkz I m using Sql database for keeping the users.Can I have any way through I can create web.config file in runtime Mean I will when run the application the default web.config file will be raised with default values and then I will create a web service which will automaticlly create the web.config file and fill all the users and password in it. Please do suggest me can it be possible.I can not use manually web.config bkz in this case I have to always feed daily users and password in it. Thanks Jitendra
Wouln't it be just as easy then to have a global array of usernames/passwords in your program and just update and compile as needed, that way you don't store them in plain text. Another option that I currently do is encrypt appkeys in my web.config file so they are not human readable, the program reads in the keys, decrypts them then simply uses them were needed.
-
Wouln't it be just as easy then to have a global array of usernames/passwords in your program and just update and compile as needed, that way you don't store them in plain text. Another option that I currently do is encrypt appkeys in my web.config file so they are not human readable, the program reads in the keys, decrypts them then simply uses them were needed.
Thanks Kluch Can u give me a simple example that how can I make global array of users and use it from Web.Config Web.Config file. Thanks This is Jitendra