I am new here, I am not new to programming, but am kinda new to encryption.
Great work with the Bouncy Castle (BC), however I have run into a major problem.
I have a server in C#, and the client in J2ME.
They are using Rijndael Encryption, and I am using the initialization vector.
The server is using the built in .NET encryption.
For the client, I am using eclipse, and the emulator is the S60 SDK, and sun wtk also works fine.
I can encrypt/decrpyt data fine on both client and server, when running the emulators.
However, when I put the J2ME app on my Nokia phone and run it over the internet or over bluetooth, then after several packets are sent, the server suddenly starts complaining:
"System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed"
After the server gets that error, none of the data from the client can be successfully decrypted again. If I log out of the client app, it still gives the same error. I basically have to restart the app.
We don't have many rules here at the JavaRanch, but we do insist that you use your Real Name and not some sort of "handle" or obvious alias. If you're not sure about this, see http://www.javaranch.com/name.jsp .
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
SKIP - a book about connecting industrious people with elderly land owners