NTLM hash function in Terminal?
You can hash using the NTLM method like this:

perl -MAuthen::Passphrase::NTHash -nle 'print Authen::Passphrase::NTHash-&gt;new(passphrase =&gt; $_)-&gt;hash_hex, ":", $_' &lt; infile &gt;&gt; outfile


However, according to your comments your question is a XY problem. You're actually really trying to build a web site that allows everyone to hash any string efficiently using any hashing algorithm. For that that purpose, the above mentioned command line is not suitable.