Javascript加密库在浏览器中签署表单数据 [英] Javascript cryptography library to sign form data in browser

查看:145
本文介绍了Javascript加密库在浏览器中签署表单数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个JS crypto lib(类似于OpenSSL的libcrypto),可以方便浏览器中的数据签名。

我想使用客户端在客户端签署表单数据私人密钥(RSA,PKI证书或类似的)。



示例


  1. 表单浏览器中的数据加载

  2. 用户A使用js lib和私钥签名= RSA_encrypt(A_private_key)在浏览器中创建签名,hash(data))

  3. 表单数据和签名被发送到服务器并存储

  4. $ b $另一个用户(B)可以通过将 hash(data) RSA_decrypt(A_public_key,signature)进行比较来检查签名的有效性)如果有人更改表单数据,签名将不再有效。


编辑



https:// develope 。。a. a. hanewin.net/encrypt

http://tomas.styblo.name / cryptoapplet /



VIA APPLETS

以用户证书签名的Web表单数据的最佳方式

! => http:/ /www.nakov.com/research/documents-signing/digital-document-signing-in-java-based-web-applications/

http://www.nakov.com/research/documents-signing/

http://www.developer.com/java/other/article.php/10936_3587361_1

http://www.developer.com/ java / web / article.php / 3083161

http://blogs.nologin.es/rickyepoderi/index.php?/archives/12-Signature-Applet.html



相关

http://ccff02.minfin.fgov.be/CCFF_Authentication/views/login/signature/signatureHelp.html

http ://msdn.microsoft.com/en-us/library/cc778518%28VS.85%29.aspx

解决方案

这个图书馆应该有帮助。



网站: http ://www.ohdave.com/rsa/
库: http: //www.ohdave.com/rsa/RSA.js


I am looking for a JS crypto lib (similar to, say, OpenSSL's libcrypto) that facilitates digital signing of data in the browser.
I want to sign form form data on the client side using a private key (RSA, PKI certificates or similar).

EXAMPLE

  1. Form data loads in browser
  2. User A reviews data and signs it => the signature is created in the browser using the js lib and the private key signature=RSA_encrypt(A_private_key, hash(data))
  3. The form data and signature is sent to the server and stored

  4. Another user (B) can check the validity of the signature by comparing hash(data) with RSA_decrypt(A_public_key, signature) If someone alters the form data the signature will no longer be valid.

EDIT

https://developer.mozilla.org/en/javascript_crypto
http://www.hanewin.net/encrypt
http://tomas.styblo.name/cryptoapplet/

VIA APPLETS
Best way to sign data in web form with user certificate
! => http://www.nakov.com/research/documents-signing/digital-document-signing-in-java-based-web-applications/
http://www.nakov.com/research/documents-signing/
http://www.developer.com/java/other/article.php/10936_3587361_1
http://www.developer.com/java/web/article.php/3083161
http://blogs.nologin.es/rickyepoderi/index.php?/archives/12-Signature-Applet.html

RELATED
http://ccff02.minfin.fgov.be/CCFF_Authentication/views/login/signature/signatureHelp.html
http://msdn.microsoft.com/en-us/library/cc778518%28VS.85%29.aspx

解决方案

This library should help.

website: http://www.ohdave.com/rsa/ library: http://www.ohdave.com/rsa/RSA.js

这篇关于Javascript加密库在浏览器中签署表单数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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