SHA-512 library for PHP

后端 未结 2 828
感动是毒
感动是毒 2020-12-05 07:57

I am searching for any crypto library that provides SHA-512 hash. Googling around I found some but SHA-512 is absent.

Please suggest.

2条回答
  •  -上瘾入骨i
    2020-12-05 08:33

    In PHP 5 >= 5.1.2, PECL hash >= 1.1:

    hash('sha512', someStr);
    

    See hash() for more information.
    To see all hash algorithms available to you, try:

    print_r(hash_algos());
    

提交回复
热议问题