encrypt($plaintext); // to decrypt $decrypted = $crypt->decrypt($ciphertext); echo $plaintext."".$ciphertext."".$decrypted; ?>