#!/bin/sh
if [ $# -ne 1 ]; then
	echo "Usage: mkntpwd <password>"
	exit 1
fi

# Render hash using perl
perl -MCrypt::SmbHash -e "ntlmgen \"\$ARGV[0]\", \$lm, \$nt; print \"\${lm}:\${nt}\n\";" $1 

exit 0
