Skip to main content

vnc_password_file

Function vnc_password_file 

Source
pub fn vnc_password_file(key: &str) -> [u8; 8]
Expand description

Contents of a VNC password file for key, as Xvnc and vncviewer -passwd read it.

The key is cut or padded to 8 bytes and DES-encrypted with a fixed key. VNC bit-reverses every byte of a DES key.