MD5 Length

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kasya
    New Member
    • Jun 2006
    • 57

    MD5 Length

    Changing MD5 Lenght:

    $security = md5("a");

    it's length is 32.

    Now How can i do that:

    It's length will be 7?
  • bevort
    New Member
    • Jul 2006
    • 53

    #2
    You can't

    MD5 is always this length. If you want a shorter encription use a simpler version
    but I do not recomed this for securety reasons

    look at this page for more details om MD5

    http://pajhome.org.uk/crypt/md5/

    Comment

    • Robbert Camps

      #3
      You can take the first 7 characters of the string with echo substr(md5($str ing), 0, 7);

      Comment

      Working...