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. Cryptography/Encryption

Cryptography/Encryption

Scheduled Pinned Locked Moved C#
databasecsharpsecurityquestion
6 Posts 6 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
    Mr Perfect
    wrote on last edited by
    #1

    Dear All. I want to store my data(username and password) in SQL using c#. I want to encrypt the password using C# cryptography. I want to store this encrypted password in database. How? Later I want to decrypt the password while reteriving it from database. Actually what happens in real time ? How they store password ? Can any one clear my doubt ? Thanx,

    C S S P 4 Replies Last reply
    0
    • M Mr Perfect

      Dear All. I want to store my data(username and password) in SQL using c#. I want to encrypt the password using C# cryptography. I want to store this encrypted password in database. How? Later I want to decrypt the password while reteriving it from database. Actually what happens in real time ? How they store password ? Can any one clear my doubt ? Thanx,

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

      Mr Perfect wrote:

      I want to encrypt the password using C# cryptography

      Then have a look here [^]. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

      1 Reply Last reply
      0
      • M Mr Perfect

        Dear All. I want to store my data(username and password) in SQL using c#. I want to encrypt the password using C# cryptography. I want to store this encrypted password in database. How? Later I want to decrypt the password while reteriving it from database. Actually what happens in real time ? How they store password ? Can any one clear my doubt ? Thanx,

        S Offline
        S Offline
        sujithkumarsl
        wrote on last edited by
        #3

        the plaintex(text to encrypt) will be encrypted to some other format,sothat you cant identify the original text.Its called cipher text.And this is the better way to save passwords in the database. you can retrieve the orginal text by decrypting the cipher text. You can use any one of the encryption technique.But you need to decrypt that before use

        My small attempt...

        1 Reply Last reply
        0
        • M Mr Perfect

          Dear All. I want to store my data(username and password) in SQL using c#. I want to encrypt the password using C# cryptography. I want to store this encrypted password in database. How? Later I want to decrypt the password while reteriving it from database. Actually what happens in real time ? How they store password ? Can any one clear my doubt ? Thanx,

          S Offline
          S Offline
          subrata jana
          wrote on last edited by
          #4

          Pwd can be stored using any alogorithm u choose MD5,Sha256 or ur own Algorithm. The encrypted values are soterd to maintain privacy. This algorithm are one-way algorithm so can only be encrypted but cannot be decrypted. So next time when pwd is entered . the code behind will generate the same encryted value that will be matched with the db value.

          H 1 Reply Last reply
          0
          • M Mr Perfect

            Dear All. I want to store my data(username and password) in SQL using c#. I want to encrypt the password using C# cryptography. I want to store this encrypted password in database. How? Later I want to decrypt the password while reteriving it from database. Actually what happens in real time ? How they store password ? Can any one clear my doubt ? Thanx,

            P Offline
            P Offline
            PandemoniumPasha
            wrote on last edited by
            #5

            to store encrypted passwords in a database, you can use salted hash technique. you can find a lot of articles on this topic if you google for 'salted hash' regards

            1 Reply Last reply
            0
            • S subrata jana

              Pwd can be stored using any alogorithm u choose MD5,Sha256 or ur own Algorithm. The encrypted values are soterd to maintain privacy. This algorithm are one-way algorithm so can only be encrypted but cannot be decrypted. So next time when pwd is entered . the code behind will generate the same encryted value that will be matched with the db value.

              H Offline
              H Offline
              Hari Om Prakash Sharma
              wrote on last edited by
              #6

              nide reply!!! :-O

              First and the Foremost: FIGHT TO WIN About Me

              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