Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 :-)

share|improve this question

closed as not constructive by SvW, mgorven, mulaz, Ward, Magellan Oct 8 '12 at 5:56

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

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 '12 at 20:35
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 '12 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. –  Benjamin Oct 8 '12 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 '12 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 '12 at 19:03
show 1 more comment

1 Answer 1

up vote 6 down vote accepted

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!

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.