Encrypting large data using Java and RSA is not a lot different to encrypting small data, as long as you know the basics. Our goal is to encrypt a String of arbitrary length, send it over the Internet and decrypt it again on the other end. We will not discuss key exchange here since that is a rather trivial task. What we need first is a KeyPair. Where you get it from does not matter in the end – Here we will create one on the fly.
How do you get your information to the wesite?
Below is some simple code that I wrote that will allow you to take anray where the first index (postParams[i][0]) is the paramater name, the second paramater (postParams[i][1]) is the paramater value. They must both be formatted to strings since that is how the post request is formatted.
Please read a simple understanding of STUN, TURN, & ICE if you are new to the concepts.
Get the Ice4J Library: If you don't have the ice4j jar or source, you can get it from [the official repository here on Google] here on GitHub! I also have a github repository with a few changes I made, but I don't keep it up to date with the official repository yet, so use the official repository for now, I noticed that the original library does limit receivable chunks of data to...