What is the length of a hashed string with SHA512?

2019-01-17 18:43发布

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

If so, what is it?

标签: hash sha512
1条回答
等我变得足够好
2楼-- · 2019-01-17 19:49

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).

查看更多
登录 后发表回答