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. Database & SysAdmin
  3. Database
  4. encryption in MySQL

encryption in MySQL

Scheduled Pinned Locked Moved Database
databasemysqlsysadminsecurityquestion
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.
  • S Offline
    S Offline
    shabonaa
    wrote on last edited by
    #1

    i want to encrypt the password fied in my database. i use MySQL Server is there anyway to do it by the database or i should make it in my code?

    D N 2 Replies Last reply
    0
    • S shabonaa

      i want to encrypt the password fied in my database. i use MySQL Server is there anyway to do it by the database or i should make it in my code?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      It should be done in your code. Add some salt, encrypt it, then store the encrypted byte stream in the database. When you want to check a users password, add the same salt to the attempted password, encrypt it the same way, then retrieve the password from the database and compare the two byte streams.

      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      • S shabonaa

        i want to encrypt the password fied in my database. i use MySQL Server is there anyway to do it by the database or i should make it in my code?

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

        of course it should be done in the code... for example md5() function in php... and then it's easy to check passwords during authorization...

        S 1 Reply Last reply
        0
        • N neon1981

          of course it should be done in the code... for example md5() function in php... and then it's easy to check passwords during authorization...

          S Offline
          S Offline
          shabonaa
          wrote on last edited by
          #4

          is there any equifilant function in C#

          N 1 Reply Last reply
          0
          • S shabonaa

            is there any equifilant function in C#

            N Offline
            N Offline
            neon1981
            wrote on last edited by
            #5

            check this article: http://www.codeproject.com/cs/database/md5sql2000.asp may be it will help...

            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