在php中适当的SHA2方式? [英] Proper way of SHA2 in php?

查看:77
本文介绍了在php中适当的SHA2方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


有人能告诉我如何在php中使用SHA的正确方法吗?

Hi can anyone show me the proper way of how to use SHA2 in php with salt?

推荐答案

首先,你需要一个SHA-2系列中特定算法的专有名称。请参阅: http://en.wikipedia.org/wiki/SHA-2 [ ^ ]。



这就是用PHP完成的: http://php.net/manual/en/function.hash。 php [ ^ ]。



-SA
First of all, you just need a proper name for a particular algorithm from the SHA-2 family. Please see: http://en.wikipedia.org/wiki/SHA-2[^].

And this is how it's done with PHP: http://php.net/manual/en/function.hash.php[^].

—SA


这篇关于在php中适当的SHA2方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆