Encrypt / Decrypt Between Android and PHP and vice-versa
MCryptmcrypt = newMCrypt();
/* Encrypt */Stringencrypted = MCrypt.bytesToHex( mcrypt.encrypt("Text to Encrypt") );
/* Decrypt */Stringdecrypted = newString( mcrypt.decrypt( encrypted ) );$mcrypt = newMCrypt();
/* Encrypt */$encrypted = $mcrypt->encrypt("Text to encrypt");
/* Decrypt */$decrypted = $mcrypt->decrypt($encrypted);