title: C# NTLM Hash Calculator
body: <p>I recently began learning C#. I tried to generate an NTLM hash in this language but I could't find a function to do this for me. In python 3.x I would import <code>hashlib</code> and calculate it with <code>hashlib.new("md4", "Hello, World!".encode("utf-16le"))</code>. </p>
  
  <p>I searched through the Object Browser in C# but didn't find anything, the closest was a windows NTLM authentication class. I also searched Microsoft's docs and found hash calculators, but only for sha1 and md5.</p>
  
  <p>Is there a way to calculate an NTLM hash in C#? Can you please show me an example of how to do it, and I would prefer a short method to keep it simple. </p>
  
  <p>Thanks. </p>