iOS实现HMAC-SHA256和HMAC-SHA1

1,334 阅读1分钟

一、导入头文件

#import <CommonCrypto/CommonDigest.h>

#import <CommonCrypto/CommonCryptor.h>

#import <CommonCrypto/CommonHMAC.h>

二、HMAC-SHA1

image.png

三、HMAC-SHA256

image.png