![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
rsa加密 ios
旋风救世主
这个作者很懒,什么都没留下…
展开
-
苹果api rsa公钥加密私钥解密
static SecKeyRef _public_key=nil; + (SecKeyRef) getPublicKey{ // 从公钥证书文件中获取到公钥的SecKeyRef指针 if(_public_key == nil){ NSData *certificateData = [GTMBase64 decodeString:RSA_PUBLIC_KEY];转载 2015-06-18 14:19:33 · 894 阅读 · 0 评论 -
openssl ios 公钥分段加解密
由于苹果官方api只支持公钥加密,私钥加密,不支持公钥解密来自服务器端私钥加密的数据,故改用openssl实现这个 - (NSData*)decryptRSAKeyWithType:(KeyType)keyType paddingType:(RSA_PADDING_TYPE)padding encryptedData:(NSData*)data{ if (data && [data l转载 2015-06-18 11:32:10 · 941 阅读 · 0 评论