A NSString Category for generating MD5 Hash from NSSting
- Category based for easy usage with existing code
- Uses native CommonDigest's class for generating hash, hence has less Energy Impact
- Add NSString+MD5NSString Folder to Project (Preferred to 'Use Groups' and 'Copy Items if Needed').
- Import Category and Use with NSString Objects.
Code:
#import "NSString+MD5NSString.h"
NSString *inputStr = @"sampler";
NSLog(@"MD5 of \"%@\" :-\n%@", inputStr, [inputStr getMD5OfNSString]);