Encryption in blackberry and decryption in .net webservices
My BlackBerry app need开发者_如何学Cs to send encrypted data to a .NET webservice, which will decrypt the data.
Please share your ideas on how to do this.
The only way I found to securely send data between Java and .NET is to use BouncyCastle (http://www.mobilefish.com/developer/bouncycastle/bouncycastle.html), as you will probably want to use RSA encryption to encrypt the symmetric key, unless you are encrypting a small amount of data. If you are going to send the encrypted data and a different symmetric key for each session, then this will be your best bet.
You may want to look at this question, to see a brief discussion on using Bouncy Castle on Blackberry:
BouncyCastle RSA encryption for BlackBerry
This discussion will show how that it should work on the Blackberry:
http://supportforums.blackberry.com/t5/Java-Development/bouncy-castle/m-p/541682
精彩评论