Tealc
April 22nd, 2009, 07:21 PM
I have a byte[] in c# that holds a SHA512 hash. I want to store the byte[] in a binary field in my MySQL and also in my MS SQL databases. What size do I need to make the binary field so that it is the exact size to hold the hash? I think there are 512 bits in 64 bytes. But I am not sure how this converts to binary.
I need this correct so passwords don't get corrupted. I also don't want to waste space by making the field too big.
Thank You.
I need this correct so passwords don't get corrupted. I also don't want to waste space by making the field too big.
Thank You.