PHP和Servlet的加密算法

We are developing a web application using php/java servlets. i would like to pass encrypted variable from PHP application to Servlet using $GET[] method and decryption from there.

Is there any encryption algorithm to use in both languages?

Edited** How can i Use Mcrypt Algorithm to do this?

Regards

Yes, use SSL, preferably with client side certificates.

Any encryption algorithm can be used in any language. For HTTP requests the best option would be to use HTTPS - it will require configuration, rather than coding.