How to calculate the checksum in an XFA form

这一生的挚爱 提交于 2019-12-09 06:50:56

问题


When you save an XFA form (XFA = XML Forms Architecture) using Adobe software, a checksum attribute is added to the form element. This checksum appears to be a SHA-1 digest, but it's unclear as to what is actually fed to the hash. Does anyone have any idea as to how this is generated? This value is needed by Adobe Acrobat to validate what's actually in the form's XML data, but when I create a hash of the XML that is being fed to the form, Adobe Acrobat doesn't accept it. This checksum attribute isn't documented in the XFA specification, so I would really appreciate it, if somebody could:

  1. Confirm that the value is actually a hash created using the SHA-1 hashing algorithm?
  2. Explain which data should be used to create this hash.

来源:https://stackoverflow.com/questions/27470442/how-to-calculate-the-checksum-in-an-xfa-form

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!