Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

encryption and decryption in mobile and .net webservices

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

like image 978
Mahesh Babu Avatar asked Dec 02 '10 06:12

Mahesh Babu


People also ask

What is encryption and decryption how is it used with the Internet?

In this article. Encryption is the process of translating plain text data (plaintext) into something that appears to be random and meaningless (ciphertext). Decryption is the process of converting ciphertext back to plaintext. To encrypt more than a small amount of data, symmetric encryption is used.

What is encryption and decryption explain with an example?

Encryption is the process by which a readable message is converted to an unreadable form to prevent unauthorized parties from reading it. Decryption is the process of converting an encrypted message back to its original (readable) format. The original message is called the plaintext message.

How do I encrypt data in web API?

Since REST APIs use HTTP, encryption can be achieved by using the Transport Layer Security (TLS) protocol or its previous iteration, the Secure Sockets Layer (SSL) protocol. These protocols supply the S in “HTTPS” (“S” meaning “secure'') and are the standard for encrypting web pages and REST API communications.

What is encryption and decryption in Android?

Encryption is the process of encoding all user data on an Android device using symmetric encryption keys. Once a device is encrypted, all user-created data is automatically encrypted before committing it to disk and all reads automatically decrypt data before returning it to the calling process.


1 Answers

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

like image 112
Michel Triana Avatar answered Sep 16 '22 20:09

Michel Triana