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. General Programming
  3. C#
  4. Best practices for database password

Best practices for database password

Scheduled Pinned Locked Moved C#
csharpdatabasetutorial
5 Posts 3 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.
  • E Offline
    E Offline
    econner
    wrote on last edited by
    #1

    I am looking for suggestions of best practices on where/how to store a database password that allows the application to open the database. It is not recommended storing it in the application, especially since .NET can be de-compiled.

    C C 2 Replies Last reply
    0
    • E econner

      I am looking for suggestions of best practices on where/how to store a database password that allows the application to open the database. It is not recommended storing it in the application, especially since .NET can be de-compiled.

      C Offline
      C Offline
      ctescu
      wrote on last edited by
      #2

      sn dont permit that the code is dissambled store a password in a exe file is wrong,but if you store the pass crypted, and in exe make an function that decrypt the pass like ASP

      C 1 Reply Last reply
      0
      • C ctescu

        sn dont permit that the code is dissambled store a password in a exe file is wrong,but if you store the pass crypted, and in exe make an function that decrypt the pass like ASP

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        If you can get at the IL in a .NET assembly you can most certainly find out where the decrypt function is and use it.


        Do you want to know more? WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums


        Upcoming talk: SELECT UserName, Password FROM Users -- Getting unauthorised access to a SQL Server, and how to prevent it.

        1 Reply Last reply
        0
        • E econner

          I am looking for suggestions of best practices on where/how to store a database password that allows the application to open the database. It is not recommended storing it in the application, especially since .NET can be de-compiled.

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          If you are using SQL Server I'd recommend going with a trusted connection - that way the OS does the authentication.


          Do you want to know more? WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums


          Upcoming talk: SELECT UserName, Password FROM Users -- Getting unauthorised access to a SQL Server, and how to prevent it.

          E 1 Reply Last reply
          0
          • C Colin Angus Mackay

            If you are using SQL Server I'd recommend going with a trusted connection - that way the OS does the authentication.


            Do you want to know more? WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums


            Upcoming talk: SELECT UserName, Password FROM Users -- Getting unauthorised access to a SQL Server, and how to prevent it.

            E Offline
            E Offline
            econner
            wrote on last edited by
            #5

            This would be more like a file based database like Acess that is installed on individual desktops.

            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