I am looking for a very basic encryption that is built into both languages where I can encrypt a string in pHP, and be able to get the data back out in Java. So it cannot be things like MD5.
A:
There are built-in or easily discoverable libraries for most major encryption schemes in both languages. Try AES.
http://download.oracle.com/javase/1.4.2/docs/api/javax/crypto/Cipher.html
Dan Grossman
2010-10-20 02:41:59