我有一台未使用SSL的服务器,因此我试图找到一种方法来保护传递到该服务器的数据的安全.我的第一个想法是 jCryption ,但这并不是我真正需要的.因此,我决定只需要预哈希密码,然后将其发送到服务器进行比较即可.所以我的问题是,有没有可以使用PHP进行密码验证的sha1实用程序?
I have a server that is not using SSL, so I'm trying to find a way to secure the data being passed to the server. My first thought was jCryption, but it is not exactly what I need. So what I decided is that I could just pre-hash the password and send it to the server for comparison. So my question is, is there a sha1 utility that can be used for password verification purposes with PHP?
推荐答案尝试使用Stanford Crypto库.它非常全面,但是如果您只需要一个哈希函数,则可以从核心中提取它(它具有sha1和256).
Try the Stanford Crypto library. It's pretty comprehensive but if you just need a single hashing function you can extract it from the core (it has sha1 and 256).
请参阅
Refer This
更多推荐
一种方式SHA1哈希javascript实现?
发布评论