Date: Wed, 2 Jun 1999 14:21:05 +0930 (CST) From: Kris Kennaway <kkennawa@physics.adelaide.edu.au> To: "Matthew D. Fuller" <fullermd@futuresouth.com> Cc: "Daniel O'Connor" <doconnor@gsoft.com.au>, chat@freebsd.org Subject: Re: FreeBSD & X Message-ID: <Pine.OSF.4.10.9906021417590.21520-100000@bragg> In-Reply-To: <19990601234004.W6251@futuresouth.com>
index | next in thread | previous in thread | raw e-mail
On Tue, 1 Jun 1999, Matthew D. Fuller wrote:
> [23:38:21] mortis:~
> (ttyp6):{404}% cat bin/authcookiegen.sh
> #!/bin/sh
> #
> # A half-decent xauth cookie generator
>
> DISPNUM=$1
>
> # Generate the cookie in multiple parts, just for added safety
> key1=`/usr/bin/vmstat -i | /sbin/md5`
> key2=`/usr/bin/netstat -i | /sbin/md5`
> key3=`/bin/ps -gaxuww | /sbin/md5`
> key4=`/usr/sbin/pstat -f | /sbin/md5`
Why not just
dd if=/dev/urandom bs=<whatever>
The above doesn't give all that good randomization of your key..
Kris
-----
"Never criticize anybody until you have walked a mile in their shoes,
because by that time you will be a mile away and have their shoes."
-- Unknown
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.10.9906021417590.21520-100000>
