Getting started with encryption in Objective-C/iOS : <p>I'm starting to learn more about public and private keys with encryption and how security and encryption works. I have been looking on Google for good tutorials about how to secure data and build encryption into iOS applications. Does anyone know of any good open source APIs/code or tutorials that have examples for iOS encryption? Specifically I'm looking to figure out a way to be able to encrypt data send the encrypted data to another device or service and be able to decode that data.</p>

<p>I was looking at <a href="https://github.com/ideawu/Objective-C-RSA" rel="nofollow">this Github repo</a> and under the usage section it shows example of how to encrypt a string with the public key. How would one go about generating that key to be able to encrypt the data?</p>

<p>Any getting started pointers would be much appreciated!</p>
