Skip to content

Instantly share code, notes, and snippets.

@shadeslayer
Created September 4, 2015 15:12
Show Gist options
  • Save shadeslayer/6921548400ebc44fdf09 to your computer and use it in GitHub Desktop.
Save shadeslayer/6921548400ebc44fdf09 to your computer and use it in GitHub Desktop.
if (KrfbConfig::allowPamAuth()) {
static unsigned char fixedkey[8] = {23,82,107,6,35,78,88,7};
rfbDesKey(fixedkey, DE1);
unsigned char passwd;
unsigned char *encPasswd = (unsigned char*)encryptedPassword.data();
rfbDes(encPasswd, &passwd);
kDebug() << passwd;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment