Created
April 28, 2011 03:56
-
-
Save laanlabs/945769 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unsigned char result[CC_SHA256_DIGEST_LENGTH]; | |
CC_SHA256([input bytes], [input length], result); | |
NSMutableString *output = [NSMutableString stringWithCapacity:CC_SHA256_DIGEST_LENGTH * 2]; | |
for(int i = 0; i < CC_SHA256_DIGEST_LENGTH; i++) | |
[output appendFormat:@"%02x",result[i]]; | |
NSLog(@"sig: %@", output); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment