Skip to content

dinner/sm4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

该demo是基于oc的sm4加解密,

HexToStr.m里定义密钥KEY。

调用: NSString* input = @"today is Monday"; unsigned char* ch_enc = [HexToStr hexEnc:input];//加密 NSString* strEnc = [NSString stringWithFormat:@"%s",ch_enc]; NSLog(@"%@",strEnc);