XML technologies / ePUB / Open Container Format / OCF container contents / Watermarks and encryption
(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)
Contents, cover files and embedded fonts can be watermarked or encrypted. OCF uses two existing XML standards:
XML Signature Syntax and Processing for digital watermarks, in the file
signatures.xmlXML Encryption Syntax and Processing for encryption, in the file
encryption.xml
Both W3C standards are documented there. XML Signature ensures e-book authenticity; XML Encryption aims to prevent unauthorized copying through hard Digital Rights Management (DRM).
This example shows part of an Encryption file using ADEPT, Adobe’s DRM.
<?xml version="1.0" encoding="UTF-8"?>
<encryption xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
<!-- Kapitel 10 wird verschlüsselt -->
<EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/>
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<resource xmlns="http://ns.adobe.com/adept">urn:uuid:c976c954-cb29-4820-8719-b3ae7a2964b8</resource>
</KeyInfo>
<CipherData>
<CipherReference URI="oebps/chapter_10.html"/>
</CipherData>
</EncryptedData>
<!-- CSS wird verschlüsselt -->
<EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/>
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<resource xmlns="http://ns.adobe.com/adept">urn:uuid:c976c954-cb29-4820-8719-b3ae7a2964b8</resource>
</KeyInfo>
<CipherData>
<CipherReference URI="oebps/ebook.css"/>
</CipherData>
</EncryptedData>
</encryption>
Code example: Encryption file excerpt
Such an encrypted file cannot usefully be processed without decryption. The encrypted XHTML file appears in Oxygen as shown below.
Figure: Encrypted XHTML file in Oxygen
Copyright © mitp 2011
You may print the online version for your private use.
Otherwise, this chapter from “E-Books mit ePUB” is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Verlagsgruppe Hüthig Jehle Rehm GmbH, Im Weiher 10, 69121 Heidelberg, kundenbetreuung(at)hjr-verlag.de
back to top