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. Windows Forms
  4. how set password in code

how set password in code

Scheduled Pinned Locked Moved Windows Forms
questiontutorial
2 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.
  • M Offline
    M Offline
    Mohammad Barzanooni
    wrote on last edited by
    #1

    :confused::confused:hii i want know that when we add any data source to the project it has two options 1. No, exclude sensitive data from the connection string, i will add in my application code 2. Yes, include sensitive data in my connection string 2nd option is nuthing anyone can use it but how to use the first option ??? how to add sensitive data in application code ??? how can i do that please provide any easy way as i didnt find it

    Mohammad Barzanooni

    L 1 Reply Last reply
    0
    • M Mohammad Barzanooni

      :confused::confused:hii i want know that when we add any data source to the project it has two options 1. No, exclude sensitive data from the connection string, i will add in my application code 2. Yes, include sensitive data in my connection string 2nd option is nuthing anyone can use it but how to use the first option ??? how to add sensitive data in application code ??? how can i do that please provide any easy way as i didnt find it

      Mohammad Barzanooni

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Keep it in the configuration file but encrypt it...by letting the framework do it for you.1 The .Net process can be used to encrypt sections in the app.config in place. Let me quote from the section Encrypting Configuration File Sections Using Protected Configuration. ".NET 2.0 provides a new feature, called protected configuration, that enables you to encrypt sensitive information in a configuration file. Although primarily designed for .NET, protected configuration can also be used to encrypt configuration file sections in Windows applications."2 Also look into SecureString when handling it in Memory. http://msdn2.microsoft.com/en-us/library/dtkwfdky.aspx[^] http://msdn2.microsoft.com/en-us/library/89211k9b.aspx[^] http://msdn2.microsoft.com/en-us/library/system.security.securestring.aspx[^] HTH

      Jinal Desai - LIVE Experience is mother of sage....

      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