in reply to Re: please explain this script
in thread please explain this script

Probably wouldn't be a bad idea to replace it with a md5 hash using Digest::MD5
use Digest::MD5; my $hash = Digest::MD5->new(); $hash->addfile(*STDIN); print $hash->hexdigest()."\n";
The resulting string is 4 times longer so its possible this would require adjustments elsewhere. You do however get the benefit of name recognition so anyone who comes across the code knows exactly what it is doing.

Replies are listed 'Best First'.
Re: Re: Re: please explain this script
by arcnon (Monk) on May 28, 2004 at 15:25 UTC
    the binary file actually stores the calulated checksum starting at the 12 byte and is expecting 32 bits. I was just wanting to know what the script was doing.