PHP equivalent of .net AES encryption
I am working on a data exchange integration with my client and the data they send me is encrypted using their C# encrypt method (below). My app is running PHP 5.3 and I need an equivalent code to decrypt the data they send. I have the PHP code but it'd not decrypt the client data correctly for me. Clearly I am making some mistake in my encryption/decryption methods, IV key or something. Can anyone spot the mistake? Thanks. C# Code (From my client): using System; using System.Security.Cryptography; using System.Text; using System.IO; public class Program { public static void Main() { var text =