I need to get two functions. I want to transfer data from my website to my server in xml format. Now on my server, I want to make a function that encrypts the data and place it in an xml, and another function in java to decrypt it.
Please tell me if there is any predefined function or can you just spare 5 minutes?
Well, you can use any encrypting
mcryptfunction in PHP. One example for encrypting in AES 128:And for decrypting, use this code (I’m not a Java pro, so there may be some bugs):