1

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?

Tweety
  • 98
  • 1
  • 9
  • 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 Answers1

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

iOS Keychain Security

Using an RSA public key generated by OpenSSL in iOS

I hope it will help you

Community
  • 1
  • 1
Armand
  • 9,847
  • 9
  • 42
  • 75
  • 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
  • @DarkDust I think that should do the job – Armand Jul 20 '11 at 09:30
  • 1
    I've edited the answer to beautify the non-SO links, otherwise +1. – DarkDust Jul 20 '11 at 09:41