SHA-1 In C

Implementing Secure Hash Algorithm (SHA-1) in C.

The message digest for a file containing the string:

abc

The message digest for a file containing the string:

abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq

The message digest for a file containing the string:

a

repeated a million times.

Get the source code here.