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
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With