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. Mysql Hash Password?

Mysql Hash Password?

Scheduled Pinned Locked Moved C#
questioncsharpmysqlcryptography
4 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.
  • E Offline
    E Offline
    Eddymvp
    wrote on last edited by
    #1

    I want to write a little program that would convert any specific string into a mysql hash password. I can do this thru mysql itself, however I want to implimenent with C#. it Mysql I would just do Password('string') and that would give me 5569C9CAE94A5E43CD192F9F6AD2A1C171D5465F, How can I do this with C#?

    G 1 Reply Last reply
    0
    • E Eddymvp

      I want to write a little program that would convert any specific string into a mysql hash password. I can do this thru mysql itself, however I want to implimenent with C#. it Mysql I would just do Password('string') and that would give me 5569C9CAE94A5E43CD192F9F6AD2A1C171D5465F, How can I do this with C#?

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      What hashing algorithm does the MySQL function use? The System.Security.Cryptography namespace contains providers for calculating MD5, MD160, SHA1, SHA256, SHA384 and SHA512 hash codes.

      --- single minded; short sighted; long gone;

      E 1 Reply Last reply
      0
      • G Guffa

        What hashing algorithm does the MySQL function use? The System.Security.Cryptography namespace contains providers for calculating MD5, MD160, SHA1, SHA256, SHA384 and SHA512 hash codes.

        --- single minded; short sighted; long gone;

        E Offline
        E Offline
        Eddymvp
        wrote on last edited by
        #3

        I'm not sure how to use this md5 hash. Can you give me a sample code to hash a basic string "string"?

        G 1 Reply Last reply
        0
        • E Eddymvp

          I'm not sure how to use this md5 hash. Can you give me a sample code to hash a basic string "string"?

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          MSDN: MD5 Class[^]

          --- single minded; short sighted; long gone;

          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