But the two digests that I get are always the same, it's just that successive calls within the same process seem to stack the previous data passed by add() or addfile()
Hence the word "add" in those function names...
Is there a workaround?
Create a new Digest object if you need a new Digest. (Or just use the functional interface rather than the OO interface.)
Oops. My apologies... antirice is absolutely correct. You are creating a digest for the stringified Digest object. Something that probably looks like "Digest::SHA1=SCALAR(0x804c138)".
-sauoq "My two cents aren't worth a dime.";
In reply to Re: How to force Digest::SHA1/MD5 to reset?
by sauoq
in thread How to force Digest::SHA1/MD5 to reset?
by lestrrat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |