PHP class which can both decrypt and encrypt. Uses PKCS7 padding for interoperability with C# version