AES-256 encryption and decryption in PHP and C# Update: There is a more secure version available. Details PHP <?php $plaintext = 'My secret message 1234';