Digester XML Examples
This page shows some example for Digester XML files being an alternative to the functionally limited GNU or BSD files. The new Digester XML format provides support for multiple digests and algorithms together in one single file. Also OpenPGP signatures may be included together with checksums. Another interesting feature of the Digester XML format is the capability to store intermediate digests. Imagine a large backup file with a data error in the first blocks. This may be detected very fast using intermediate digests, there is no need to calculate the checksums for the whole file.
Please check out the current document type definition (DTD) summary-1.1.dtd specifying the Digester XML format.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<?xml version="1.0" encoding="UTF-8"?> <summary version="1.1" date="Tue May 29 10:41:06 CEST 2012" targets="1"> <target abspath="D:\checksum_test\franz.txt" relpath="franz.txt" length="59" modified="Sun Jan 01 15:50:04 CET 2012" digests="2" pgpsigs="1"> <digest algorithm="MD5" size="16" format="hex">a3cca2b2aa1e3b5b3b5aad99a8529074</digest> <digest algorithm="SHA-1" size="20" format="hex">68ac906495480a3404beee4874ed853a037a7a8f</digest> <pgpsig keyid="0x7EB2B10924E58CDB" keyname="Test" keyemail="This email address is being protected from spambots. You need JavaScript enabled to view it." size="194" format="ascii">-----BEGIN PGP SIGNATURE----- Version: Data Digester 1.6.3 iEYEABECAAYFAk/Ei6IACgkQfrKxCSTljNt6ywCeN/vVeKmbhxnWFOtSfKBUEZwM LuUAn36Xal6ZdmYPeozR1OlLhQBfmgL7 =KgSl -----END PGP SIGNATURE----- </target> </summary> |
Sample Digester XML file for a single target with multiple algorithms
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
<?xml version="1.0" encoding="UTF-8"?> <summary version="1.1" date="Tue May 29 10:57:13 CEST 2012" targets="2"> <target abspath="D:\checksum_test\franz.txt" relpath="franz.txt" length="59" modified="Sun Jan 01 15:50:04 CET 2012" digests="2" pgpsigs="1"> <digest algorithm="MD5" size="16" format="hex">a3cca2b2aa1e3b5b3b5aad99a8529074</digest> <digest algorithm="SHA-1" size="20" format="hex">68ac906495480a3404beee4874ed853a037a7a8f</digest> <pgpsig keyid="0x7EB2B10924E58CDB" keyname="Test" keyemail="This email address is being protected from spambots. You need JavaScript enabled to view it." size="194" format="ascii">-----BEGIN PGP SIGNATURE----- Version: Data Digester 1.6.3 iEYEABECAAYFAk/Ej2kACgkQfrKxCSTljNvoUwCfTQnG4r3phbWvNqL9ey90qT7a GiQAn1LnP8WLV45WpJPNTjPwnfWY0HKA =IyZF -----END PGP SIGNATURE----- </target> <target abspath="D:\checksum_test\jnlp-1_5-mr-spec.pdf" relpath="jnlp-1_5-mr-spec.pdf" length="227496" modified="Tue May 29 10:56:56 CEST 2012" digests="12" pgpsigs="1"> <digest algorithm="MD5" size="16" format="hex">bad17c4ea7ba5804ee415198dbdd293a</digest> <digest algorithm="MD5" size="16" pos="8192" format="hex">eb17da78bb8a415ee2ef84b504b94494</digest> <digest algorithm="MD5" size="16" pos="16384" format="hex">b92bf2a4228a6103f8540d10d65d0f36</digest> <digest algorithm="MD5" size="16" pos="32768" format="hex">ae7b72bfd5686d9936a510f0cd87e678</digest> <digest algorithm="MD5" size="16" pos="65536" format="hex">7cc37a5633de2ce7a5fdc1bd1a37cdb8</digest> <digest algorithm="MD5" size="16" pos="131072" format="hex">e3286b3aaa3e3ba6e181d7e26d163601</digest> <digest algorithm="SHA-1" size="20" format="hex">9346cb18d8cf8d5066e661dc468540b14275285f</digest> <digest algorithm="SHA-1" size="20" pos="8192" format="hex">0ad56058ddd6fba142c38f4552bf4fe16f93103f</digest> <digest algorithm="SHA-1" size="20" pos="16384" format="hex">68bb5167eb62667d3f5ea9bfd529e438daed0586</digest> <digest algorithm="SHA-1" size="20" pos="32768" format="hex">36b31b4fe0a50557bf66f1976eb2c07b5228616f</digest> <digest algorithm="SHA-1" size="20" pos="65536" format="hex">57010aa5db867eecc6553b5842f04f158df09cb2</digest> <digest algorithm="SHA-1" size="20" pos="131072" format="hex">128e90d30b816addb24b1106195accdf78952a6a</digest> <pgpsig keyid="0x7EB2B10924E58CDB" keyname="Test" keyemail="This email address is being protected from spambots. You need JavaScript enabled to view it." size="194" format="ascii">-----BEGIN PGP SIGNATURE----- Version: Data Digester 1.6.3 iEYEABECAAYFAk/Ej2kACgkQfrKxCSTljNt1+QCfQhvT1Q28d6Qa5a7LEFbX4Ana pKsAni9v1qEJP8gqm8BLaoch2redqzAw =a5kX -----END PGP SIGNATURE----- </target> </summary> |
Sample Digester XML file for multiple targets with intermediate digests