Tecnologías XML / ePUB / Open Container Format / Contenido del contenedor OCF / Marcas de agua y cifrado

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

Contenido, cubiertas y fuentes pueden llevar marcas de agua o cifrarse. OCF utiliza dos estándares XML:

Ambos estándares del W3C están documentados allí. XML Signature garantiza autenticidad; XML Encryption pretende impedir copias no autorizadas mediante Digital Rights Management (DRM) estricto.

El ejemplo muestra parte de un archivo Encryption con ADEPT, el DRM de 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> 

Ejemplo de código: extracto de archivo Encryption

Un archivo así cifrado no puede procesarse útilmente sin descifrar. El archivo XHTML cifrado aparece en Oxygen como debajo.

Archivo XHTML cifrado en Oxygen

Figura: archivo XHTML cifrado en Oxygen

   

<< atrás

siguiente >>

 

 

 

volver arriba