storepasswd is the original program to save a vnc style password in a file.Unfortunately, authentication as every vncviewer speaks it means the server has to know the plain password. You really should tunnel via ssh or use your own PasswordCheck to build a PIN/TAN system.
#include <stdio.h>
static void usage(void)
{
printf("\nusage: storepasswd <password> <filename>\n\n");
printf("Stores a password in encrypted format.\n");
printf("The resulting file can be used with the -rfbauth argument to OSXvnc.\n\n");
exit(1);
}
int main(
int argc,
char *argv[])
{
if (argc != 3)
usage();
printf("storing password failed.\n");
return 1;
} else {
printf("storing password succeeded.\n");
return 0;
}
}
int rfbEncryptAndStorePasswd(char *passwd, char *fname)
int main(int argc, char *argv[])