1

Ok so basically i have a WCF service which provides the IOS application with a public key, i want to encrypt data with the public key and send it to the WCF service.

On the C# wcf service i use RSACryptoServiceProvider and at the moment i export to a CspBlob byte array. but i guess i would need to use xml export.

So thats fine, i need to somehow create a SecKeyRef to encrypt the data on IOS.

Iv tried looking for a working solution but all i can find is this library and it cost a lot of money just to encrypt some data. I also found this but i cant get it to work. And there is a failed attempt over here using this.

Can someone help me encrypt data with RSA public key encryption on IOS. It needs to be able to decrypt on C#.

Community
  • 1
  • 1
string.Empty
  • 10,393
  • 4
  • 39
  • 67
  • Why can't you use SSL? – Iridium Feb 27 '14 at 13:28
  • We are using ssl, but the company im working for wants this encryption as well as ssl. We are working with very sensitive data. and it seems appropriate to encrypt the data. – string.Empty Feb 27 '14 at 13:36
  • So you're encrypting this "very sensitive" data, and yet the $300 for the library you mention is "a lot of money"? Given that SSL is essentially trusted with billions of dollars each day by securing connections used for online banking, stock trading, etc. the fact that you cannot justify a $300 expenditure (whether it's actually required or not) suggests this data really isn't all that valuable after all, and hence, SSL is entirely adequate. – Iridium Feb 27 '14 at 14:02
  • We have already spend a lot of money on the project and this can be done without paying. SSL only protect the data through the network. – string.Empty Feb 28 '14 at 06:05
  • Check out my answer for similar case http://stackoverflow.com/questions/17955406/importing-an-objective-c-rsa-public-key-into-c-sharp-rsacryptoserviceprovider/28841819#28841819 – Ozgur Sahin Mar 03 '15 at 21:14

0 Answers0