What is The Best Data Type to Store the Result of HASHBYTES('MD5', ...)?
The output conforms to the algorithm standard: 128 bits (16 bytes) for MD2, MD4, and MD5; 160 bits (20 bytes) for SHA and SHA1; 256 bits (32 bytes) for SHA2_256, and 512 bits (64 bytes) for SHA2_512.So despite the fact that the function technically returns varbinary(8000), you'll only ever get 16 bytes with MD5. If…
Answered Apr 22, 2021 · 2.1K Views Read answer →