Skip to main content

obfuscate_password

Function obfuscate_password 

Source
pub fn obfuscate_password(password: &str) -> Vec<u8> ⓘ
Expand description

Encode a password for LOGIN7.

This is obfuscation, not a hash: MS-TDS specifies that each byte of the UTF-16LE password has its nibbles swapped and is then XORed with 0xA5. It hides nothing from anyone watching the wire, which is exactly why the login packet is sent through TLS.