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

How to open password protected ePub file? #1352

Open
praveen-jangre opened this issue Aug 23, 2023 · 1 comment
Open

How to open password protected ePub file? #1352

praveen-jangre opened this issue Aug 23, 2023 · 1 comment

Comments

@praveen-jangre
Copy link

I am working on the ePub rendering engine. To achieve file/content protection, we have done file protection with a password.

Could you please help me open these password-protected files which are stored in the server as well as local storage?

Thank you in advance.

@johnfactotum
Copy link
Contributor

It's not clear how you're password protecting the file, but in any case it wouldn't be something that's supported by Epub.js (unless you're encrypting the whole file after zipping, in which case just reverse that before feeding it to Epub.js).

The most proper way to do DRM would involve using encryption.xml, which Epub.js does not support (it doesn't even deobfuscate fonts). If you use something like that, you'd need to decrypt it yourself and serve the EPUB unpacked to Epub.js (i.e. opening it as a directory or .opf or .json).

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

2 participants