Noia:

MD* is 32 characters, 0-9 and a-f.
SHA1 is 40 characters, 0-9 and a-f.

Leave the caps out

For clarification, I am trying to do what sirdice mentions in post #7.

My method for figuring this out was by generating a bunch of them in cryptomx and comparing, so may be incorrect.