title: How to use AES Encryption in C# coming from PHP?
body: <p>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.</p>
  
  <pre><code>$data = "hello world";
  $key = ""very secret key;
  base64_encode(openssl_encrypt($data, "aes-256-cbc", $key, OPENSSL_RAW_DATA));
  </code></pre>
  
  <p>How can the same be achieved in C#? </p>
  
  <p>Thanks in advance.</p>