Вот нашел инфу, но не совсем понял что надо днлать.
Passwords are roasted when sent to the host. This is done so they aren’t sent in “clear text” over the wire, although they are still trivial to decode. Roasting is performed by first xoring each byte in the password with the equivalent modulo byte in the roasting array (0xF3, 0×26, 0×81, 0xC4, 0×39, 0×86, 0xDB, 0×92, 0×71, 0xA3, 0xB9, 0xE6, 0×53, 0×7A, 0×95, 0×7C)
К примеру мой пароль 12345678 и как мне его преобразовать?
HKL myHKL = LoadKeyboardLayout (TEXT ( “00000419” ), KLF_ACTIVATE);
HWND mywin = FindWindow (0, TEXT (“Нужное окно”));
SendMessage (mywin, WM_INPUTLANGCHANGEREQUEST, 1, (LPARAM) myHKL);