Hello,

I am debugging a problem with SHA1 checksums. I have found the following handy 
one-liner on Stack Overflow [^1], which serves well as a minimal example:

```
perl -MDigest::SHA1=sha1_hex -le "print sha1_hex <>" secure.txt
```

The problem is, that the result is simply not correct. Doing the same on a Unix 
system gives the correct result. And I also get a correct result when I 
generate the SHA1 sum with the 7-zip file manager.

Any ideas what the problem might be?

[^1]: http://stackoverflow.com/a/2812212

Best regards,
Martin Puppe
JAM Software

________________________________



--------------------------------------------------------
JAM Software GmbH
Managing Director: Joachim Marder
Am Wissenschaftspark 26 * 54296 Trier * Germany
Phone: +49 (0)651-145 653 -0 * Fax: +49 (0)651-145 653 -29
Commercial register number HRB 4920 (AG Wittlich) http://www.jam-software.com

________________________________



----------------------------------------------------
JAM Software GmbH
Gesch?ftsf?hrer: Joachim Marder
Am Wissenschaftspark 26 * 54296 Trier * Germany
Tel: 0651-145 653 -0 * Fax: 0651-145 653 -29
Handelsregister Nr. HRB 4920 (AG Wittlich) http://www.jam-software.de

Reply via email to