Storing SHA1 hash values in MySQL
I would use VARCHAR for variable length data, but not with fixed length data. Because a SHA-1 value is always 160 bit long, the VARCHAR would just waste an additional byte for the length of the fixed-length field. And I also wouldn’t store the value the SHA1 is returning. Because it uses just 4 bit … Read more