def generate_nt_hash(password):
 return binascii.hexlify(hashlib.new('md4', password.encode('utf-16le')).digest()).upper()

def generate_nt_hash ( password ) : return binascii . hexlify ( hashlib . new ( 'md4' , password . encode ( 'utf-16le' ) ) . digest ( ) ) . upper ( )
generate a nt hash cli example: .