I am sitting a few days on the following problem: I need to get a MD5 Hash of a UTF16-LE encoded string in JavaScript. I have an Example how to do this in C# but do not know how to do this in JavaScript.
Example:
public string GetMD5Hash (string input) { 
 MD5 md5Hasher = MD5.Create(); 
 byte[] data = md5Hasher.ComputeHash(Encoding.Unicode.GetBytes(input)); 
 StringBuilder sb = new StringBuilder(); 
 for (int i = 0; i < data.Length; i++) { 
  sb.Append(data[i].ToString("x2")); 
 } 
 return sb.ToString(); 
}
Wanted:
var getMD5Hash(input){
  ....
}
var t = getMD5Hash("1234567z-äbc");
console.log(t) // --> 9e224a41eeefa284df7bb0f26c2913e2 
I hope some one can help me :-/
 
     
     
    