def _ntowfv1(password):
<EOL>if re.match(r'<STR_LIT>', password):<EOL><INDENT>nt_hash = binascii.unhexlify(password.split('<STR_LIT::>')[<NUM_LIT:1>])<EOL>return nt_hash<EOL><DEDENT>digest = hashlib.new('<STR_LIT>', password.encode('<STR_LIT>')).digest()<EOL>return digest<EOL>
[MS-NLMP] v28.0 2016-07-14

3.3.1 NTLM v1 Authentication
Same function as NTOWFv1 in document to create a one way hash of the
password. Only used in NTLMv1 auth without session security

:param password: The password or hash of the user we are trying to
    authenticate with
:return digest: An NT hash of the password supplied