Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site daemen.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!rochester!rocksanne!sunybcs!daemen!boyce
From: boyce@daemen.UUCP (Doug Boyce)
Newsgroups: net.unix
Subject: crypt -s?
Message-ID: <1350@daemen.UUCP>
Date: Mon, 4-Nov-85 21:35:57 EST
Article-I.D.: daemen.1350
Posted: Mon Nov  4 21:35:57 1985
Date-Received: Thu, 7-Nov-85 06:30:50 EST
Distribution: net
Organization: Daemen College, Buffalo, NY
Lines: 41

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-