When I use this code to create a sha256 of a string
unsigned char hashedChars[32]; NSString *inputString; inputString = [NSString stringWithFormat:@\"hello\"
You probably should use NSData instead of NSString then. Where do you get that string from?
NSData
NSString