md5 equivalent

Discussion in 'PHP' started by cloudnthunder, Mar 14, 2010.

  1. #1
    Hi I have this in my php code

    md5($string)

    however my php which is from xampp seems not be able to use md5? Is there any equivalent to it.
     
    cloudnthunder, Mar 14, 2010 IP
  2. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #2
    danx10, Mar 14, 2010 IP
  3. ThomasTwen

    ThomasTwen Peon

    Messages:
    113
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    try using md5($string);


    Every available version of PHP supports md5()
     
    ThomasTwen, Mar 14, 2010 IP
  4. Rory M

    Rory M Peon

    Messages:
    1,020
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #4
    How does it not use it? Is there an error or something? This has me curious :D
     
    Rory M, Mar 14, 2010 IP
  5. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #5
    You can try hash('md5', $string);
     
    Kaizoku, Mar 14, 2010 IP
  6. cloudnthunder

    cloudnthunder Peon

    Messages:
    163
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i just realise it was another error... not due to md5...
     
    cloudnthunder, Mar 14, 2010 IP
  7. miller23

    miller23 Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    md5 is best
     
    miller23, Mar 17, 2010 IP