php - sha512 可能的输出字符是什么?

标签 php hash sha512

$code 的可能字符有哪些:

$randStr = "some random string that contains only: [a-zA-Z0-9_]";
$code = hash('sha512', $randStr);

最佳答案

SHA512 会生成 128 个小写 HEX 字符(0 到 f),例如

a9046c73e00331af68917d3804f70655a9046c73e00331af68917d3804f70655a9046c73e00331af68917d3804f70655

the documentation for hash()了解更多信息。

关于php - sha512 可能的输出字符是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23511317/

相关文章:

php - MySQL先插入后删除

php - 我的 session ID 是在登录前生成的吗?

java - 在 Java 中重写 hashCode()

c - 使用 crypt() 在 for 循环中意外覆盖变量

PHP古特。没有 "value"字段的选择按钮

c# - WPF C# 应用程序中的哈希密码

hash - 为什么选择 SHA512 而不是 SHA384?

c# - SHA512 计算哈希返回乱码

json - 如何使用 sha512 为 JWT 生成 RSA key ?

php - 是否有任何 IDE 能够在 PHP 中重命名重构命名空间?