Convert a string to MD5?

Discussion in 'iOS Programming' started by ilx.mac, May 25, 2009.

  1. ilx.mac macrumors member

    Joined:
    Mar 10, 2009
    #1
    Hi there,


    I am trying to convert a string to an MD5 format. I looked for some samples but failed. Can I get some code samples / suggestions from you?


    Thanks in Advance!:)
     
  2. fire.tiger macrumors newbie

    Joined:
    May 22, 2009
    #2
    try this:
    http://md5-reverse.net.ru/

    there ale implementation in various languages at the bottom.
    There's no Objective C impl. but classic C is there. It shouldn't be problem to
    rewrite. MD5 are just 3 functions.
     
  3. gravityone macrumors newbie

    Joined:
    May 9, 2010
    #4
  4. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #5
    In what way is it bad?

    If it's bad because it's not lower-case, then the simplest way to fix that is to use "%02x" instead of "%02X".
     

Share This Page