What is the length of a hashed string with SHA512?

左心房为你撑大大i 提交于 2019-11-27 01:43:38

问题


Is the length of a string hashed with sha512 always the same?

If so, what is it?


回答1:


As the name implies, it's 512 bits, that is 64 bytes.

But that's the hash, maybe you're wondering about a specific representation of that hash in string, as is commonly used, then it depends of the given representation.

If you write the hash in hexa, then it will be 128 characters.

If you write the hash in base64, then it will be 86 bytes (or 88 with padding).



来源:https://stackoverflow.com/questions/18236106/what-is-the-length-of-a-hashed-string-with-sha512

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!