generate MD5 strings with Objective-C?
Sorry for posting on an old thread, but how may I generate MD5 strings with Objective-C? I really don't know how to do it. Also a sample code is appreciated.
fernandovalente Wrote:Sorry for posting on an old thread, but how may I generate MD5 strings with Objective-C? I really don't know how to do it. Also a sample code is appreciated.
An MD5 hash is a number, so just format print a hex number.
Your MD5 library should already have some function for obtaining a string. Or you could try and format print from a 128-bit unsigned integer.
See also http://www.opensource.apple.com/source/t.../md5/md5.c.
Everyone's favourite forum lurker!
unsigned char md;
MD5(data, n, &md);
gives you the md5 hash as binary
Possibly Related Threads...
May 18, 2009 04:52 AM
Last Post: Oddity007
|Key sequence to generate end-of-file signal?||WhatMeWorry||14||8,834||
May 7, 2009 07:25 AM
Last Post: Robin Forder
|Where are strings?||Tekkan||2||2,795||
Jun 17, 2007 02:44 AM
Last Post: Fenris
|Converting integer/numeric values to Strings||vnvrymdreglage||5||3,747||
Oct 23, 2006 07:18 PM
Last Post: vnvrymdreglage
|Using a matrix to generate a new vector position||imikedaman||6||4,832||
Jul 16, 2006 01:17 PM
Last Post: imikedaman