Mailing List Archive

SHA1 test vectors
Hi,

I have implemented SHA-1 but do not have any test vector, can someone
be so kind an send me some examples:

For example:
""
"a"
"abc"
"message digest"
"a...z"
"abcdbcde...nopq"
"A...Za...z0...9"
8 times "1234567890"
1 million times "a"

if you have a program to calculate SHA-1 you can do it like this:

echo -n "e.g. one of the above test strings" | sha1 >>out

(please do not forget the "-n")

Any other examples are also good.


tia,
Werner

--
Werner Koch, Duesseldorf - werner.koch@guug.de - PGP keyID: 0C9857A5