# SHA: Generates a 28-character string using the Secure Hash Standard SHA-1 algorithm specified by Nation Institute of Standards and Technology (NIST) FIPS-180-2.
# SHA-256: Generates a 44-character string using the SHA-256 algorithm specified by FIPS-180-2.
# SHA-384: Generates a 64-character string using the SHA-384 algorithm specified by FIPS-180-2.
# SHA-512: Generates an 88-character string using the SHA-1 algorithm specified by FIPS-180-2.
Actually, one of the comments at the bottom of that page indicates that the documented returned string lengths are wrong and you actually get 40 characters when using SHA1, which is correct.
Yeah, but the example I was running was returning 28 characters, as was the expected output from that VB function, but they were a different 28 characters, so it must have been that one function is hashing before converting to Base64 (I don't get that - how does 20 in Base64 make 28? :S) and the other one was... doing something else but still producing a Base64 number.