$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/