Options
All
  • Public
  • Public/Protected
  • All
Menu

An implementation of the default Resource Obfuscation algorithm defined in https://www.w3.org/publishing/epub3/epub-ocf.html#sec-resource-obfuscation.

Typically used for obfuscation of fonts.

This EncryptionMethod implementation is enabled by default in newly created OcfResourceProviders.

Hierarchy

  • IdpfObfuscationEncryptionMethod

Implements

Index

Constructors

Methods

Constructors

constructor

Methods

decrypt

  • decrypt(srcData: Uint8Array): Promise<Uint8Array>
  • Decrypt the specified array buffer

    Parameters

    • srcData: Uint8Array

    Returns Promise<Uint8Array>

getName

  • getName(): string
  • Get the name of this encryption method.

    For XML encryption, this should be the EncryptionMethod element`s Algorithm attribute. For example, for the following XML, this method should return "http://www.idpf.org/2008/embedding":

     <enc:EncryptedData>
    <enc:EncryptionMethod Algorithm="http://www.idpf.org/2008/embedding"/>
    <enc:CipherData>
    <enc:CipherReference URI="EPUB/Fonts/BKANT.TTF"/>
    </enc:CipherData>
    </enc:EncryptedData>

    Returns string

Generated using TypeDoc