title: C# emulating php crypt
body: <p>I need to hash passwords with C# in a way that another software understands it . 
  Originally php's <code>crypt</code> function is doing that. It has the following output</p>
  
  <pre><code>$6$rounds=1000$1f$yeKGQo0b8MqqMpocFla8uKLE6GOpEygSQUH4qMi4msJZsD50Eh00bU4GwoGGPEeLMdG6C17ehl/l8SrcOABdC0
  </code></pre>
  
  <p>I guess it is SHA512. . How can I achieve php's crypt functionality with C#</p>
  
  <p>original php </p>
  
  <pre><code>$salt = '$6$rounds=1000$'.dechex(rand(0,15)).dechex(rand(0,15)).'$';
  $crypted = crypt($password, $salt);
  </code></pre>