views:

214

answers:

3

Hi, I am currently sending an email from my xcode/iphone app. The requirements are to send an encrypted email or attached file and then be able to decrypt/open the information after receipient delivery.

Has anyone seen any code to help me accomplish this task?

Thanks

Leland

+1  A: 

CommonCrypto will give you tools to encrypt and decrypt. You'd need to do the UI work yourself.

Alex Reynolds
Thanks, have you used this? Do you think it will work on a non apple email or webmail client?
Leland usher
No, this a framework for applying cryptographic functions to data. You would add this to your application, to perform cryptographic operations. Gmail, etc. have no native support for such operations, as far as I know.
Alex Reynolds
+1  A: 

Use S/MIME, so that you don't need a specialized client on the receiving end.

Not sure if iPhone has an app for that, though.

erickson
+2  A: 

I don't think you've quite thought this one through. In general, if an email client or webmail system does not have a feature to send an encrypted email (in any way), then you can be pretty sure that it also does not have a feature to read encrypted emails. For example, Gmail does not have a "send as encrypted" option, so sending any kind of encrypted email to Gmail will not be readable without using a separate decryption program.

There are two de facto standards for encrypting email, and lots of information about them both can be found on the page S/MIME and OpenPGP. However, neither of these solutions offer a generally available email encryption facility. The level of interoperability between different systems is terrible, and no progress appears to be happening today.

One approach might be Hushmail which has been around for a long time and is essentially its own encrypted webmail provider. You would email a Hushmail link to the user, they would click on that and go to the Hushmail site where they could read the email.

Greg Hewgill