I have a function that\'s generating a sha256 encryption of a string,
Here\'s the function:
-(NSString*)sha256HashFor:(NSString*)input
{
const ch
This code will not show any warning and works perfectly.
- (NSString*) sha256 {
const char * pointer = [self UTF8String];
unsigned char result[CC_SHA256_DIGEST_LENGTH];
CC_SHA256(pointer, (CC_LONG)strlen(pointer), result);
NSMutableString *ret = [NSMutableString stringWithCapacity:CC_SHA256_DIGEST_LENGTH*2];
for(int i = 0; i