+ (NSString*)md5:(NSString*)str
{
constchar*concat_str = [strUTF8String];
unsignedcharresult[CC_MD5_DIGEST_LENGTH];
CC_MD5(concat_str, (unsignedint)strlen(concat_str), result);
NSMutableString *hash = [NSMutableString string];
for(inti =0; i <16; i++){
[hash appendFormat:@"%02X", result[i]];
}
return [hash uppercaseString];
}