md5 hashing's lenth

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shreedhan
    New Member
    • Jul 2007
    • 52

    #1

    md5 hashing's lenth

    Hi
    I need to create a page for login
    I am planning to store md5 hashed passwords in mysql database
    so I am not sure how long will be the result produced by md5() function
    Is there some maximum length?
    Or is that a constant length?

    Thanks
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, shreedhan.

    You posted this in the Articles section. I'll go ahead and move it to the Forum where an Expert will be more likely to find it.

    MD5 outputs a 32-character string.
    SHA1 (if you're curious) outputs a 40-character string.

    Comment

    • shreedhan
      New Member
      • Jul 2007
      • 52

      #3
      Originally posted by pbmods
      Heya, shreedhan.
      You posted this in the Articles section. I'll go ahead and move it to the Forum where an Expert will be more likely to find it.
      I am extremely sorry for that. I didn't realise that
      Thanks for your help

      Comment

      • pbmods
        Recognized Expert Expert
        • Apr 2007
        • 5821

        #4
        Heya, shreedhan.

        Good luck with your project, and if you ever need anything, post back anytime :)

        Comment

        Working...