adobe acrobat pdf 文件附件使用哪种校验和算法
Which checksum algorithm is being used by adobe acrobat pdf for file attachment
我正在使用 pdfBox 将一些文件附加到 pdf 中,文件附件工作正常,但我不知道要输入什么校验和。
当我手动附加文件并通过 pdfBox 解析它时,我看到有一个校验和值,如
我不知道本质上使用的是哪种校验和算法,肯定不是 md5 或 sha。
谢谢。
它是 MD5。
引自 table 46, PDF 32000-1:2008:
CheckSum, string, (Optional) A 16-byte string that is the checksum of the bytes of the uncompressed embedded file. The checksum shall be calculated by applying the standard MD5 message-digest algorithm (described in Internet RFC 1321, The MD5 Message-Digest Algorithm; see the Bibliography) to the bytes of the embedded file stream.
我正在使用 pdfBox 将一些文件附加到 pdf 中,文件附件工作正常,但我不知道要输入什么校验和。
当我手动附加文件并通过 pdfBox 解析它时,我看到有一个校验和值,如
我不知道本质上使用的是哪种校验和算法,肯定不是 md5 或 sha。
谢谢。
它是 MD5。
引自 table 46, PDF 32000-1:2008:
CheckSum, string, (Optional) A 16-byte string that is the checksum of the bytes of the uncompressed embedded file. The checksum shall be calculated by applying the standard MD5 message-digest algorithm (described in Internet RFC 1321, The MD5 Message-Digest Algorithm; see the Bibliography) to the bytes of the embedded file stream.