What's new

Should I be worried? (sha256 hash not matching)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

storkinsj

Occasional Visitor
Hi All,
Picture paints a thousand words. Why don't these match?

Screen Shot 2023-03-12 at 9.51.24 AM.png


Screen Shot 2023-03-12 at 9.51.45 AM.png
 
Why don't these match?
The hash 53749fccea499de58d7c5de0c38af705c36743f50d7d7510c5b5d17df21de96a for the GT-AX11000_388.1_0_ubi.w firmware file matched for me using the MD5 & SHA Checksum Utility 2.1 program on Windows 10. Maybe try redownloading the firmware file again if you haven't done so already.

hash.jpg
 
Last edited:
You’re hashing the filename only, not the file content. :)
Code:
rtradmin@router:/tmp/home/root# echo -n GT-AX11000_388.1_0_ubi.w | sha256sum
28cadfe588c3708d1b593214aef484fec39e16a358a2926b0a17a6f35f944d4d  -
 
@dave14305 is right, you shouldn't be using pipes.


Also the sha256sum command doesn't work on all routers, it's only available in newer models, so for anyone reading this thread, you can use the following command to get the sha256 hash on any Merlin/Asus router via openssl.
Code:
openssl sha256 "/path/yourffile"
If you want to output only sha256:
Code:
openssl sha256 "/path/yourffile" | awk '{print $2}'
It even works well on macOS and most linux distributions.

If you insist on using sha256sum, then please use it like this:
Code:
sha256sum "/path/yourffile"

For Windows command line:
Code:
CertUtil -hashfile "C:\path\yourfile" SHA256

For Windows powershell:
Code:
Get-FileHash "C:\path\yourfile"
 
Last edited:

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Top