Sha256 in Objective-C for iPhone

前端 未结 4 1336
天命终不由人
天命终不由人 2020-12-08 05:36

When I use this code to create a sha256 of a string

unsigned char hashedChars[32];
NSString *inputString;
inputString = [NSString stringWithFormat:@\"hello\"         


        
4条回答
  •  醉酒成梦
    2020-12-08 06:13

    You probably should use NSData instead of NSString then. Where do you get that string from?

提交回复
热议问题