Results 1 to 7 of 7

Thread: Secure APplication settings

Hybrid View

  1. #1

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Secure APplication settings

    hi guyz! how will i secure my application settings. Becuase my application settings contains vital information like my username, password, database name, etc.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Secure APplication settings

    What version are you using? If I had a dollar for every time I've asked that question. .NET 2.0 has native support for encrypting config files. Previous versions do not.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: Secure APplication settings

    .NET 2.0.. Ok 'ill try that. Thanks!

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Secure APplication settings

    The following article is geared towards ASP.NET but it can just as easily be applied to Windows applications. You need to use the "-pef" switch when invoking "aspnet_regiis" and the section on Web Farms applies to deployed Windows apps too.

    http://msdn.microsoft.com/library/de...AGHT000006.asp
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: Secure APplication settings

    Thanks for tha link. But im also thinking to just encrypt first the data like password, username, etc. before I store it in application settings and just decrypt it when retrieve it. what you think?

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Secure APplication settings

    It's up to you. The good thing about using the technique described in that article is that there's no need for you to worry about decryption in your code because that's handled for you. It would also introduce limitations though, so you'd have to weight that up against the pros. I've played with the technique described in that article but never used it in anger, so I don't know all the details.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: Secure APplication settings

    ok thanks maybe i'll use the idea that i had mentioned but i'll try to go into your suggestion becuase its a new learning. thanks!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width