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:

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.

Encrypted XHTML file in Oxygen

Figure: Encrypted XHTML file in Oxygen

   

 

 

 

back to top