Convert a string to MD5?

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

  1. ilx.mac macrumors member

    Mar 10, 2009
    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

    May 22, 2009
    try this:

    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

    May 9, 2010
  4. chown33 macrumors 604

    Aug 9, 2009
    Sailing beyond the sunset
    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