Skip to content
Novus Examples
epub4 KB

EPUB 3 - Embedded Font, IDPF Obfuscated

The same book with its embedded font obfuscated by the IDPF algorithm: the first 1040 bytes are XORed with the SHA-1 of the whitespace-stripped unique identifier, and META-INF/encryption.xml declares it. Paired with the plain-embedding twin so a de-obfuscator can be checked byte for byte.

Archive contents — 8 entriesepub
  • mimetype
  • container.xml
  • encryption.xml
  • content.opf
  • nav.xhtml
  • style.css
  • NovusSansSample.ttf
  • chapter1.xhtml

Specifications

Seed
20260807
Epub Version
3.0
Font Family
Novus Sans Sample
Obfuscated
true
Algorithm
http://www.idpf.org/2008/embedding
Obfuscated Bytes
1040
Key Source
SHA-1 of the whitespace-stripped unique identifier
Has Encryption Xml
true

Testing contract

Expected to pass
Scenario
De-obfuscate the font using the dc:identifier from the package document and compare with the plain twin.
Expected result
XORing the first 1040 bytes with SHA-1 of the identifier reproduces the plain twin's font byte for byte, and the chapter renders in the embedded face.

What is a .epub file?

EPUB is the open e-book standard, a ZIP archive containing XHTML content documents, CSS, images, and a package manifest describing reading order and metadata. It supports reflowable text that adapts to screen size and is supported by most e-readers except Kindle natively. It is the dominant format for distributable e-books.

How to use this file

Use an example EPUB to test e-book parsing, ZIP-package and manifest handling, reading-order and metadata extraction, and rendering in e-reader applications.

How to use this file for testing

“EPUB 3 - Embedded Font, IDPF Obfuscated” is a deterministic Novus Examples fixture for Conversion testing. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.

Documented properties for this file: seed 20260807 · http://www.idpf.org/2008/embedding. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

E-book fixtures are structured archives documented down to their spine and manifest. Test readers and converters, and where a valid↔intentionally-invalid pair exists, assert graceful handling of the malformed container.

Code examples

ebook-convert idpf-obfuscated-font.epub out.pdf   # Calibre
unzip -l idpf-obfuscated-font.epub                # EPUB is a ZIP

Generated by generation/ebooks_p7.py. Free for any use, no attribution required — license.