Javascript是适当的加密平台吗?或者,可以吗? [英] Is Javascript a proper platform for cryptography? Or, can it be?

查看:146
本文介绍了Javascript是适当的加密平台吗?或者,可以吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到维基百科链接到不同哈希的 JavaScript实现功能。还可以 Clipperz Crypto 找到。即使Mozilla在Firefox中实现了加密对象

I noticed a good while back that Wikipedia links to a Javascript implementation of different hash functions. Also found Clipperz Crypto. Even Mozilla implements a crypto object in Firefox.

那么,Javascript是否是适当的加密平台?或者,可以吗?

或者,我想...在POST之前对数据进行哈希处理有什么用途或好处吗?

So, Is Javascript a proper platform for cryptography? Or, can it be?
Or, I suppose.. Are there any purposes or benefits for hashing data before POST?

推荐答案

在Javascript中有哈希函数的用途,例如验证captchas客户端(通过比较会话中的哈希值和输入的计算哈希值)。显然,用途是有限的,因为它几乎只运行客户端(并且你不能信任客户端输入),但潜力是存在的。

There are uses for hashing functions in Javascript, for example validating captchas client side (by comparing hash in session to computed hash from input). Obviously, the uses are limited since it runs almost exclusively client side (and you can't trust client input), but the potential is there.

这篇关于Javascript是适当的加密平台吗?或者,可以吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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