#import <NSString+MD5.h>
Definition at line 11 of file NSString+MD5.h.
◆ generateMD5Hash()
- (NSString *) generateMD5Hash |
|
|
|
Definition at line 13 of file NSString+MD5.m.
15 const char *
string = [
self UTF8String];
16 unsigned char md5Buffer[CC_MD5_DIGEST_LENGTH];
17 CC_MD5(
string, (
unsigned int)strlen(
string), md5Buffer);
18 NSMutableString *output = [NSMutableString stringWithCapacity:CC_MD5_DIGEST_LENGTH * 2];
19 for(
int i = 0; i < CC_MD5_DIGEST_LENGTH; i++)
20 [output appendFormat:
@"%02x",md5Buffer[i]];
The documentation for this category was generated from the following files: