title: How to openssl passwd -1 in C# against MySQL
body: <p>I am making one extension for iRedMail server, I want to add new user using C# code.
  IrerdMail holding users inside MySQL database, passwords of users are encrypted using openssl (MD5).
  When I look at iRedMail api for creating users there is line of code inside bash script:</p>
  
  <pre><code>openssl passwd -1 passwordToBeEncrpted
  </code></pre>
  
  <p>That command inside terminal return me MD5 string, If I copy that string to my app and execute insert command against MySQL table hosted on mail-server created user works OK.<br>
  What will be proper way to generate MD5 from user password so I can insert that to MySQL database ?<br>
  My app running on other server beside iRedMAil, Is it obligatory to MD5 be created on the same machine ?
  I am considering calling SSH command from C# code , Is there free .NET library which can reuse output stings from SSH as variables ?<br>
  Can this be done using something like UDF like in MSSQL server. I know how I cloud call command app from MSSQL does something like that exist at MySQL - CentoOS combination.</p>