PHP SHA3 functionality

后端 未结 4 2074
隐瞒了意图╮
隐瞒了意图╮ 2020-12-29 08:22

Is there a framework or function that allows me to use SHA3-512? I don\'t want a extension like Strawbrary

4条回答
  •  旧时难觅i
    2020-12-29 09:26

    For those coming to this later (after this post) PHP 7.1.0 has support for SHA3-512.

    Per the PHP Manual (http://php.net/manual/en/function.hash-algos.php) the hash_algos() function will output your system's available hash algorithms. The following code will output your system's available hash algorithms:

    ";
        print_r (hash_algos());
        echo "
    "; ?>

    My output looks something like this:

    Array
    (
        [0] => md2
        [1] => md4
        [2] => md5
        ...
    )
    

提交回复
热议问题