Search code examples
epubdrm

How to add DRM on epub programmatically?


I'm searching for a method to add DRM on ePub files programmatically. Anyone know how to do that? Maybe 3rd party software?


Solution

    • I added DRM with following things: if ePub is coming from server, make zip file password protected and inside HTML pages you can encrypt via AES-128. For images also you can encrypt but you need to add more code on your reader part.

      if you are encrypting images, then all images must be decrypted before you load HTML page in web or browser.