iPhone / Objective-c RSA加密 [英] iPhone/Objective-c RSA encryption
本文介绍了iPhone / Objective-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屋!
查看全文