Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 11:48 AM   #1
icearch
Connoisseur
icearch began at the beginning.
 
Posts: 95
Karma: 10
Join Date: Nov 2025
Device: none
How to encrypt Epub?

How to encrypt Epub so others can't change it's comtent? Is this even possible?
icearch is offline   Reply With Quote
Old Yesterday, 12:54 PM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,797
Karma: 24088595
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by icearch View Post
How to encrypt Epub so others can't change it's comtent? Is this even possible?
Can't be done, unless you write your own app. See also How to make an EPUB file read-only/non-modifiable?
Doitsu is offline   Reply With Quote
Advert
Old Yesterday, 01:05 PM   #3
icearch
Connoisseur
icearch began at the beginning.
 
Posts: 95
Karma: 10
Join Date: Nov 2025
Device: none
Well how does pdf achieve this? Pdf can be set to read-only (require password to edit) or require password to read. But it seems fine to read on any other apps that supports pdf.
Is it because encryption is not a thing in mind when creating epub standards?
icearch is offline   Reply With Quote
Old Yesterday, 01:53 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 82,236
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by icearch View Post
How to encrypt Epub so others can't change it's comtent? Is this even possible?
Apple's current DRM has not been broken. You could sell your ePub through Apple.
JSWolf is offline   Reply With Quote
Old Today, 08:32 AM   #5
QuietShelfLife
Member
QuietShelfLife began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2026
Device: iPad
The short answer is that PDF has password protection baked into the format spec — every PDF reader knows how to handle it. EPUB is basically a zip of HTML files, so there's nothing like that built in. You'd need an external DRM system (Readium LCP, Apple FairPlay, Adobe ADEPT) and those all require certified reader apps to work. It's a fundamental design difference between the two formats.
QuietShelfLife is offline   Reply With Quote
Advert
Old Today, 11:42 AM   #6
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,585
Karma: 21743811
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
You can password-protect a zip, and therefore also an epub. It would probably no longer be a spec-compliant epub and few applications (if any) would recognize and open it as an epub.

But before you embark into creating or modifying an app to read those files, note that anyone with the password to open the book and read it would also have the password to open the book and modify it.

If your concern is not so much preventing modification, but being able to tell whether the book is the original or a modified copy, you can always publish some checksum like md5 or sha-256. That way your readers could verify that their copy is identical to the one approved by you.
Jellby is online now   Reply With Quote
Old Today, 11:59 AM   #7
icearch
Connoisseur
icearch began at the beginning.
 
Posts: 95
Karma: 10
Join Date: Nov 2025
Device: none
Quote:
Originally Posted by Jellby View Post
You can password-protect a zip, and therefore also an epub. It would probably no longer be a spec-compliant epub and few applications (if any) would recognize and open it as an epub.

But before you embark into creating or modifying an app to read those files, note that anyone with the password to open the book and read it would also have the password to open the book and modify it.

If your concern is not so much preventing modification, but being able to tell whether the book is the original or a modified copy, you can always publish some checksum like md5 or sha-256. That way your readers could verify that their copy is identical to the one approved by you.
That's good! I will look into md5 and such.
icearch is offline   Reply With Quote
Old Today, 12:00 PM   #8
icearch
Connoisseur
icearch began at the beginning.
 
Posts: 95
Karma: 10
Join Date: Nov 2025
Device: none
Quote:
Originally Posted by QuietShelfLife View Post
The short answer is that PDF has password protection baked into the format spec — every PDF reader knows how to handle it. EPUB is basically a zip of HTML files, so there's nothing like that built in. You'd need an external DRM system (Readium LCP, Apple FairPlay, Adobe ADEPT) and those all require certified reader apps to work. It's a fundamental design difference between the two formats.
I see, thx.
icearch is offline   Reply With Quote
Old Today, 12:21 PM   #9
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,797
Karma: 24088595
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Jellby View Post
If your concern is not so much preventing modification, but being able to tell whether the book is the original or a modified copy, you can always publish some checksum like md5 or sha-256. That way your readers could verify that their copy is identical to the one approved by you.
Theoretically, the OP could add a signatures.xml file to the META-INF folder of epub3 books. But they'd have to provide their own custom validation tool.

Moreover, the W3C stated:
Quote:
Adding a digital signature is not a guarantee that a malicious actor cannot tamper with an EPUB publication as reading systems do not have to check signatures.
(emphasis mine)
Doitsu is offline   Reply With Quote
Old Today, 12:59 PM   #10
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 15,336
Karma: 113121807
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by icearch View Post
Well how does pdf achieve this? Pdf can be set to read-only (require password to edit) or require password to read. But it seems fine to read on any other apps that supports pdf.
Is it because encryption is not a thing in mind when creating epub standards?
PDF only partially achieves this and isn't reflow-able and can covert to image only.

If people can see it, then ultimately any DRM can be defeated.
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Let's Encrypt, Root CAs and python used with Calibre jindroush Development 3 10-02-2021 05:22 AM
Is it possible to further encrypt an EPUB document by password TES General Discussions 28 02-16-2012 04:42 PM
Why encrypt epub balmydrizzle ePub 2 10-28-2010 11:17 PM
epub, ePub, EPUB, warum blos ePub? flowoeB Lounge 5 11-27-2009 10:37 AM


All times are GMT -4. The time now is 03:22 PM.


MobileRead.com is a privately owned, operated and funded community.