Re: linux sha1sum .vs php sha1

From: Date: Fri, 20 Mar 2009 16:06:48 +0000
Subject: Re: linux sha1sum .vs php sha1
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-290381@lists.php.net to get a copy of this message
bruce wrote: > hi... > > doing some testing with linux sha1sum, and php's sha1 function... are > they both supposed to return the same results for the same chunk of > text. > > test > > file "a.dat" = "1234567890" > > linux: > echo a.dat > sha1sum -t != php <? sha1("1234567890"); ?> > > any thoughts... Try "echo -n" /Per -- Per Jessen, Zürich (3.4°C)

« previous php.general (#290381) next »