💻 Software
Why does sha1sum act differently with the same input?
Fresh7 days ago
Mar 15, 20261241 viewsConfidence Score0%
0%
Problem
I'm trying to replicate the behavior of the sha1sum executable in some java code, however, in the process I've discovered that sha1sum appears to behave differently given the same input in two scenarios. Assume input of '12345' without the single quotes and with no newline. If I put this data into …
Error Output
$ sha1sum file1 8cb2237d0679ca88db6464eac60da96345513964 file1
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Why does sha1sum act differently with the same input?
Low Risk
adds a newline. To get the same result you should add a single at end of input if it is not present.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix