2011年10月28日

摘要: Objective-C MD5加密字符串 @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 strin... 阅读全文
posted @ 2011-10-28 22:09 LUxiang 阅读(1268) 评论(0) 推荐(0)

导航