Technologies XML / ePUB / Open Container Format / Contenu du conteneur OCF / Filigranes et chiffrement

(Extrait de «E-Books mit ePUB ─ Von Word zum E-Book mit XML» de Dr. Victor Wang)

Contenus, couvertures et polices peuvent recevoir un filigrane ou être chiffrés. OCF utilise deux standards XML :

Les deux standards W3C y sont documentés. XML Signature assure l’authenticité ; XML Encryption vise à empêcher la copie non autorisée par un Digital Rights Management (DRM) contraignant.

L’exemple montre un extrait de fichier Encryption utilisant ADEPT, le DRM d’Adobe.

<?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> 

Exemple de code : extrait de fichier Encryption

Un fichier ainsi chiffré est inutilisable sans déchiffrement. Le fichier XHTML chiffré apparaît dans Oxygen comme ci-dessous.

Fichier XHTML chiffré dans Oxygen

Figure : fichier XHTML chiffré dans Oxygen

   

 

 

 

haut de page