Levi is of course right - to check the correctness of implementation of SHA1 we need at the very least to compare the output on some random set of known/trusted/correctly computed input/output pairs. However, the exercise of computing and comparing a lot of hashes within some reasonable time is very interesting. Knowing how to do it efficiently is a skill that will come handy at some point in your life.
-- Sasha Pachev Fast Running Blog. http://fastrunningblog.com Run. Blog. Improve. Repeat. /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */