一种方式SHA1哈希javascript实现?

编程入门 行业动态 更新时间:2024-10-28 06:21:59
本文介绍了一种方式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实现?

本文发布于:2023-11-29 17:48:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1647143.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:方式   javascript   哈希

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!