Generated from Manticore v1.1.5 • 201 packages. View on pkg.go.dev

lm

import "github.com/TheManticoreProject/Manticore/crypto/lm"

Index

func LMHash

func LMHash(password string) [16]byte

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

func LMHashToHex(password string) string

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

func LMOWFv1

func LMOWFv1(Passwd, User, UserDom string) [16]byte

LMOWFv1, this is the same as LMHash Source: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/464551a8-9fc4-428e-b3d3-bc5bfb2e73a5