摘要:
@interface NSString (MyExtensions) - (NSString *) md5; @end @implementation NSString (MyExtensions) - (NSString *) md5 { const char *cStr = [self UTF8String]; unsigned char result[16]; CC_MD5( cStr, strlen(cStr), result ); // This is the md5 call return [NSString stringWithFormat: @"%02x... 阅读全文
posted @ 2013-03-29 13:38
与时俱进
阅读(2200)
评论(0)
推荐(2)