i need to encrypt text using rsa algorithm for which i need public key. i want to generate public key inside the app and use it for encryption. i have to generate key of type SecKeyRef. how do i do that?
Asked
Active
Viewed 4,920 times
1
-
i want to generate public key inside the app and use it for encryption. i have to generate key of type SecKeyRef. how do i do that? – Tweety Jul 20 '11 at 09:18
-
Please don't ask the same question again. You can place a bounty on this one if you aren't getting sufficient answers. – Jul 21 '11 at 11:51
1 Answers
3
I dont know exactly what you want to do, but this might help you,
iOS - Creating SecKeyRef from exponent+modulus
Keychain Services Programming Guide
Using an RSA public key generated by OpenSSL in iOS
I hope it will help you
-
Your link is about the Mac's keychain, however the poster wants to know about the iOS keychain. – DarkDust Jul 20 '11 at 09:16
-
@DarkDust Then he needs to look into http://developer.apple.com/library/mac/#documentation/Security/Conceptual/keychainServConcepts/iPhoneTasks/iPhoneTasks.html and also http://stackoverflow.com/questions/3558252/ios-keychain-security – Armand Jul 20 '11 at 09:19
-
Right. Please edit your question accordingly (people often don't bother reading comments). – DarkDust Jul 20 '11 at 09:23
-
-
1