boyce@daemen.UUCP (Doug Boyce) (11/05/85)
Upon looking at the sources for crypt(1) I noticed the the undocumented
-s (secure_flag). Does anyone no the exact purpose of this?
Also there is a way to stop people from finding the password sent to crypt
via ps(1), w(1), and sps(l). This is quite useful when using a shell script
to encrypt a whole directory.
Put in the following.....
--------------------------------------------------------------------------------
main(argc, argv)
char *argv[];
{
register i, n1, n2, nr1, nr2;
int secureflg = 0;
if (argc > 1 && argv[1][0] == '-' && argv[1][1] == 's') {
argc--;
argv++;
secureflg = 1;
}
if (argc != 2){
setup(getpass("Enter key:"));
}
else {
setup(argv[1]);
argv[1][0] = '\0';
^^^^^^^^^^^^^^^^^^
}
--
Doug Boyce Daemen College, Amherst NY
UUCP : {decvax,dual,rocksanne,watmath,rocksvax}!sunybcs!daemen!boyce
ihnp4!kitty!daemen!boyce
ARPA : boyce@buffalo@csnet-relay
"I order you to call your men back!"
"Your men are armed with cameras, mine are armed with flame-throwers."
-C.H.U.D-martinl@molihp.UUCP (Martin M Lacey) (11/29/85)
>Upon looking at the sources for crypt(1) I noticed the the undocumented >-s (secure_flag). Does anyone no the exact purpose of this? > >Also there is a way to stop people from finding the password sent to crypt >via ps(1), w(1), and sps(l). This is quite useful when using a shell script >to encrypt a whole directory. >Doug Boyce Daemen College, Amherst NY Gee, Doug: Hey, do you really have the source for crypt ??? (rhetorical question). Actually, if it at all possible, I would very much like a copy. I think others might also learn a bit from reading such material. Thanx in advance (if it is possible to show this without infringing (sp?) on someone or somethings rights :-) ). Martin the Magician.