7

i have done implementing mobile app on android,webos,blackberry,iphone.

now i integrate project with .net webservices.

while exchange data i need to encrypt in mobile platform and decrypt in .net webservices

which is best encryption algorithm i tried on internet and got zero.

Please suggest me.if you share any sample code.you save me a lot

Thanks in advance

MaHeSh

Mahesh Babu
  • 3,395
  • 9
  • 48
  • 97

3 Answers3

2

I will suggest you use something NIST approved, like Rijndael or AesManaged encryption in conjunction with a password-based key derivation encryption method (PBKDF2).

Also make sure you use cyphers of at least 256-bit keys (NIST approved for storage and transmission of top secret information). You may also want took into tokenization of your sensitive content with truly random tokens (never cryptographically based tokens).

The implementation of AES is an industry standard and you can find many implementations for each of your client platforms online. The important aspect is for your server to be able to decrypt the encrypted information sent by the clients. Since you are using .NET web services, you can explore the System.Security.Cryptography namespace and in particular the AesManaged class and the RinjndaelManaged algorithms.

Here are some implementations on different languages:
AES for Java and C#
AES for Objective-C and PHP

Michel Triana
  • 2,486
  • 1
  • 22
  • 31
0

Not sure about the other platforms but blackberry comes out of the box with comprehensive crypto APIS.

http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/crypto/package-summary.html

seand
  • 5,168
  • 1
  • 24
  • 37
0

Your webservice needs to be hosted on some webserver. Configure it to run on HTTPS rather than HTTP and the communication with your webservice will be encrypted.

Best Regards,
Oliver Hanappi

Oliver Hanappi
  • 12,046
  • 7
  • 51
  • 68
  • https will give you privacy of the data flying though the air. However by itself it doesn't give you authentication. That is, the client is who it says it is. – seand Dec 02 '10 at 06:51