I've started using AWS Glacier, and noticed that it hashes the files using an algorithm called SHA-256 Tree Hash.

To my surprise, this algorithm is different from SHA-256, so I can't use the tools I'm used to, to compare hashes and verify file integrity.

Do you know a Windows tool, if possible integrated in the context menu, to compute the SHA-256 Tree Hash of a file?

I'd also accept a Linux command-line tool, as a second choice :-)

  • stackoverflow.com/questions/12058011/… explains what the SHA-256 Tree Hash is, but I don't know of any ready-made programs to do it.
    – DerfK
    Sep 29, 2012 at 20:35
  • 1
    Questions that are effectively requests for product recommendations are off-topic for ServerFault. Please see: blog.stackoverflow.com/2010/11/qa-is-hard-lets-go-shopping
    – Magellan
    Oct 8, 2012 at 5:56
  • @Adrian Thanks. But I've read that link, and can't see how it relates to my question. I'm not asking for the best tool to do the job, but instead if such a tool exists, and where to find it. I've found the answer to my question anyway, so no worries.
    – BenMorel
    Oct 8, 2012 at 18:35
  • The 'if exists and where to find it' part is what makes it a 'Shopping' question. If you have any questions about how that works, I definitely encourage you to visit Meta.Serverfault and inquire there.
    – Magellan
    Oct 8, 2012 at 18:58
  • If a question distills to "I'm looking for $PRODUCT with $FEATURES" then it's a shopping Question. This one is "I'm looking for a utility with SHA-256 Tree Hash capabilities."
    – Chris S
    Oct 8, 2012 at 19:03

1 Answer 1


After a bit more research, it looks like the concept of SHA-256 Tree Hash is something specific to Amazon Glacier, hence the difficulty to find any tool that supports it.

However, the Glacier documentation provides sample code to compute the hash, in Java and C#. Both compile into a command-line tool that computes the hash of the file given as an argument.

I just copied and pasted the C# code in the free Visual C# 2010 Express, compiled it, and I now have the command line tool I was looking for!


Not the answer you're looking for? Browse other questions tagged .