如何将html中form表单数字签名以保证其安全性?

来源:百度知道 编辑:UC知道 时间:2024/09/23 10:14:29
html中有一个form表单,为防止中间人攻击,所以我想将提交的form表单中的数据签名(数字签名)。不知如何实现?(就像邮件签名一样)
谢谢1楼的,但是要求我们只用数字签名form表单

可以用struts中的信牌。DEMO: DocumentTypeDataBean documentTypeDataBean = ctrl.setDataBean( documentTypeForm, "insert");
String oldkey = documentTypeForm.getType_task_id().toString();
String result = ctrl.copeAddDocumentType(documentTypeDataBean,oldkey);//增加操作

List documentTypeList = ctrl.getAllDocumentType(request, null);
request.setAttribute("documentTypeList", documentTypeList);
request.setAttribute("documentTypeForm", null);
this.saveToken(request);//保存信牌
return mapping.findForward("list.documenttype");

也可以不用, 原理是一样的。传个唯一的值 , 在后台中作判断。

是想在客户端签名是码?
最好使用SSL。或者就是要在客户端加ActiveX控件