This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: md5sum and xauth


On Wed, 12 Dec 2001, Rüdiger Bodack wrote:

> 
> Hi all, 
> 
> I am trying to create a magic cookie for .Xauthority, using this nice
> command line I found somewhere:
> dd if=/dev/urandom count=1|md5sum|sed -e 's/^/add :0 . /'|xauth -q
> 
> It seems that the md5sum shows unexpected behavior on my W2K. md5sum always
> gives something like this:
> f3f7d6844351a99aaeb44751037112ad *-
> The *- seems to be strange. Am I am doing a stupid mistake?

md5sum --help:
The sums are computed as described in RFC 1321.  When checking, the input
should be a former output of this program.  The default mode is to print
a line with checksum, a character indicating type (`*' for binary, ` ' for
Text), and name for each FILE.

This means md5sum  read the file - (stdin) in binary mode.

Try  dd if=/dev/urandom count=1|md5sum|cut -f1 -d\ |sed [...skipped]

bye
	ago
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723
 phone: +49 3725 349 80 80	mobile: +49 172 7854017


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]