一种方式SHA1哈希javascript实现? [英] one way SHA1 hash javascript implementation?

查看:62
本文介绍了一种方式SHA1哈希javascript实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台未使用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实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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