Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protecting epub's content #235

Closed
marcelomiura opened this issue Nov 5, 2014 · 5 comments
Closed

Protecting epub's content #235

marcelomiura opened this issue Nov 5, 2014 · 5 comments

Comments

@marcelomiura
Copy link

I was looking for a way to apply DRM on my "exploded" epub. Can Readium manage decryption for the content on demand?

@rkwright
Copy link
Contributor

rkwright commented Nov 5, 2014

Can you provide a little more info on your use case? Short answer is that we are not planning to provide support for this in the short term, but there is, AFAIK, no technical reason it couldn't be done.

@marcelomiura
Copy link
Author

Thanks for your answer!
I'm using Readium on a webview for a mobile application. I'm studying a way to apply DRM on the content, but I guess the decryption process to keep the files in memory will be heavy for mobile.
Do you have suggestions for me?

@minhld
Copy link

minhld commented Dec 10, 2014

@marcelomiura if you manage to make an android native app to host Readium, you can do it this way: unzip your EPUB file into a folder, encrypt every single file inside that folder (for big files like videos you can encrypt only the header). then implement the decryption inside the NanoHTTPD server.

@danielweck
Copy link
Member

Hello,
this is the readium-js-viewer repository (web browser -based "cloud reader" and "chrome extension"), so I did not realise that the question was in fact related to native application launchers (WebView).

If you are indeed using ReadiumSDK, then there is support for EPUB resource decryption via the Content Filter Chain architecture. Note that streaming of encrypted media such as audio/video (i.e. arbitrary HTTP byte-ranges) is supported, but this requires more work than whole-file decryption, for obvious reasons.
See: https://github.com/readium/readium-sdk/wiki/ContentFilterEncryptedMedia

Regards, Daniel

@marcelomiura
Copy link
Author

Thanks for your answer @minhld.
@danielweck actually, it's a native android application with the cloud-reader inside a webview. I didn't tryed ReadiumSDK yet. Do you think it would be a better solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants