Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Asp.Net security

Asp.Net security

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-netsecurityhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    naresh_pandey13
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • N naresh_pandey13

      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

      M Offline
      M Offline
      MKlucher
      wrote on last edited by
      #2

      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.

      N 1 Reply Last reply
      0
      • M MKlucher

        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.

        N Offline
        N Offline
        naresh_pandey13
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups