Crate ntlm_hash

Source
Expand description

This crate inplements the ntlm hash in pure rust.

§Usage :

use ntlm_hash::*
println!("{}", ntlm_hash("some_string"))

§Limitation :

This crate hashes only strings of maximum 31 characters long.

Functions§

convert_hex
This function converts the output of ntlm_crypt to hexadecimal form
ntlm_crypt
The main function of this crate : the raw hash function
ntlm_hash
This function takes a string and output a hex of the ntlm hash
prepare_key
This function takes care of the Unicode conversion and the padding it takes an array of bytes as input so do str.as_bytes() to use the function on a &str