I want to use following encryption method in C#. but I don't know whether it is available or not and how to use it exactly. Because I am much more familiar in web :'(. Task is I have to decrypt the user password where it encrypted in desktop app.(written in C#) and send as a json object. Using my php script I have to decode the json object and also decrypt password. Plz help. If this is not achievable plz suggest me a solution to use.
I want to use this code in C#
$key = '12345bcde';
$password = 'myPass@1001';
$encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $password, MCRYPT_MODE_CBC, md5(md5($key))));