Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
列:pwdhash
类型:字符
许多网页给我的是位大小,而不是字符大小。我应该改用二进制字段吗?
存储在 BLOB 中时为64 字节。
以十六进制存储时为128 个字符。
存储为Base64时约为 88 个字符。
是的,您应该使用二进制字段。 哈希不是字符串。
出于可读性原因,这些有时存储为十六进制数字(每个字节两位)。所以 512 位需要 64 个字节,这需要一个char(128)字段。如果你使用二进制字段,它只需要 64 个字节。
char(128)