I can easily use the terminal to encrypt a string via openSSL commands, using a CER file and a TXT file to start from. I have to do it the same in the iPhone SDK.
Around there are excellent tutorials on how to compile openSSL for iPhone SDK. But then I'm missing the next step.
How to have in a iPhone .m the following command, for example?
openssl rsautl -encrypt -in TEXT.txt -out ENCRYPTED.enc -inkey CERTIFICATE.cer -certin -pkcs
I'm sorry if this question may sound stupid, but I really don't know how to start... Is there a tutorial or a sample around?
Thanks a lot!