Two Laptop Bag
The moose likes Android and the fly likes encryption Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "encryption" Watch "encryption" New topic


Aris Doxakis
Ranch Hand

Joined: Dec 05, 2004
Posts: 136

good morning,
if i have a web service, written in .NET, is there a common way to encrypt/decrypt data so they can be read by my android app? Do they share common methods? The web service is SOAP and i use KSOAP2 for the data. Thanks in advance.
Satya Komatineni
Ranch Hand

Joined: May 11, 2011
Posts: 38
Good Morning.

if you use https as the transport it is encrypted on the wire.

If you want to encrypt the data specifically, looks like android has the javax.crypto library included. I have seen some examples on the net using AES encryption.

Here is one such link

However the device may need to know the passwords to decrypt it unless you are using a public/private keys and you hold the public key. But then it only gives you the authentication or certification of what is sent.


My Web Site:
Our Book for Tablets/Phones: Pro Android 3
I agree. Here's the link:
subject: encryption
It's not a secret anymore!