iPhone / Objective-c RSA加密 [英] iPhone/Objective-c RSA encryption

查看:133
本文介绍了iPhone / Objective-c RSA加密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在谷歌研究和研究如何在iPhone上使用Cbjective-C进行简单的RSA加密。我的主要问题是我已经将指数和模数作为一个 NSData 对象提供,然后我需要将它们转换为一个 SecKeyRef 对象,以便执行RSA加密。



有没有人有任何想法如何做或有任何有用的提示?



非常感谢!

解决方案

我最终在我的项目中使用OpenSSL。并使用该库而不是iPhone导入密钥和加密。


I have been Google-ing and researching for an answer on how to do a simple RSA encryption using Cbjective-C on an iPhone. The main problem I have is that I have been supplied the Exponent and Modulus as an NSData object and i need to then convert them to a SecKeyRef object in order to perform the RSA encryption.

Does anyone have any idea how to do that or have any useful hints?

Many thanks!

解决方案

I ended up using OpenSSL in my project. and import the keys and encrypt using that library instead of the iPhone ones.

这篇关于iPhone / Objective-c RSA加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆