# Online calculator for sha256(“foo”) mod 100 [closed]

How can most people easily solve stuff like this:

sha256("foo") mod 100

google and wolframalpha didn't do it.

By easily I mean like type it in an online web calculator, or use software installed by default on Windows, MacOS and Linux.

thx

-

## closed as off-topic by Amzoti, T. Bongers, Davide Giraudo, Nate Eldredge, ThomasOct 26 '13 at 22:21

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question is not about mathematics, within the scope defined in the help center." – Amzoti, Community, Davide Giraudo, Nate Eldredge, Thomas
If this question can be reworded to fit the rules in the help center, please edit the question.

What is "foo"?.. –  Sujaan Kunalan Oct 26 '13 at 21:20
@sujaan foo is an arbitrary string as argument to the sha256 hash function. –  Bernhard Kuemel Oct 26 '13 at 21:21
–  vadim123 Oct 26 '13 at 21:21
@BernhardKuemel, I don't understand the downvotes. This is a legitimate question about a mathematical formula expressed as an algorithm. –  vadim123 Oct 26 '13 at 21:22
On Linux, you should have sha256sum installed by default. You could then pipe it to bc (also should be default-installed) to compute the remainder modulo 100. –  Daniel Fischer Oct 26 '13 at 21:25

python -c "from hashlib import sha256; print int(sha256('foo').hexdigest(),16)%100" for Linux/Mac, etc.