Re: [PHP] linux sha1sum .vs php sha1

2009-03-20 Thread Jan G.B.
well, echoing a file name and hashing this name with an added carriage return is not the same as hashing the string you can see in your file. bye echo -n 123 | sha1sum && php -r 'echo sha1(123)." -\n";' 2009/3/20 bruce : > hi... > > doing some testing with linux sha1sum, and php's sha1 function

Re: [PHP] linux sha1sum .vs php sha1

2009-03-20 Thread Per Jessen
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 > > any thoughts... Try "echo