Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LMHash ¶
LMHash computes the LAN Manager hash of a password string The LM hash is computed as follows: 1. Convert password to uppercase and pad/truncate to 14 bytes 2. Split into two 7-byte halves 3. Create two DES keys from each 7-byte half (convert 7 bytes to 8 bytes adding parity bits) 4. DES encrypt the constant "KGS!@#$%" with each key 5. Concatenate the two DES outputs
func LMHashToHex ¶
LMHashToHex converts the LM hash to a lowercase hex string
The LM hash is converted to a hex string by encoding the hash as a lowercase hex string ¶
Returns the lowercase hex string representation of the LM hash
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.