简体   繁体   中英

Decoding key M in Pades signature dictionary

I'm working on a Pades signature validation tool in javascript. I have generated a signed pdf file using adobe Acrobat, to use as a test file; i've noticed that the M key in the signature dictionary is not in the form (D:UtcTime) ex: (D:20220524124230Z) but is a sequence of bytes. How do i decode it?

Here is the pdf signature dictionary(couldn't copy the bytes in windows) :

Most likely your PDF is encrypted. In an encrypted PDF nearly all strings and streams are encrypted. Dates in PDF are specially formatted strings, so they also are encrypted.

To decode it, analyze the encryption dictionary of the PDF and decrypt the date value.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM