title: convert dot net encryption function in node js
body: <p>I have the code in dotnet of a function that compare clear password and the hash one. 
  I am migrating this website site in node.js, but I am blocked on this part. 
  I want to compare the password they enter at login with the hash from dotnet code. So I have to write the function in node.js. </p>
  
  <p>I share some part of .net encryption code here </p>
  
  <p>So array of byte is the same as the .net function but the encryption don't give me the same result :/ 
  It's my headache since 1 day and a half.</p>
  
  <p>Thx</p>