永发信息网

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

答案:2  悬赏:20  手机版
解决时间 2021-01-25 00:49
  • 提问者网友:低吟詩仙的傷
  • 2021-01-24 06:29
html中有一个form表单,为防止中间人攻击,所以我想将提交的form表单中的数据签名(数字签名)。不知如何实现?(就像邮件签名一样)

谢谢1楼的,但是要求我们只用数字签名form表单
最佳答案
  • 五星知识达人网友:鱼芗
  • 2021-01-24 07:21
可以用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");

也可以不用, 原理是一样的。传个唯一的值 , 在后台中作判断。
全部回答
  • 1楼网友:你可爱的野爹
  • 2021-01-24 07:36
是想在客户端签名是码? 最好使用SSL。或者就是要在客户端加ActiveX控件 再看看别人怎么说的。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯