crypt -s?

Doug Boyce boyce at daemen.UUCP
Tue Nov 5 12:35:57 AEST 1985


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 at 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-



More information about the Comp.unix mailing list