public static byte[] CreateNtlmHash(string password) { var hashCreator = new MD4(); var ntmlHash = hashCreator.Update(Encoding.Unicode.GetBytes(password)).Digest(); return(ntmlHash); }