We have a project that required us to encrypt data to a 3rd party using PHP's openssl_encrypt function. However, we use C# to develop our apps.
$data = "hello world";
$key = ""very secret key;
base64_encode(openssl_encrypt($data, "aes-256-cbc", $key, OPENSSL_RAW_DATA));
How can the same be achieved in C#?
Thanks in advance.