![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Dec 2022
Device: android
|
![]()
I am new to this field, I have an ebook being purchased, and I want to read it in another reader than the native, but it opens obfuscated.
what do I need to do de-obfuscate it? what do I need to have, to deobfuscate? any ID (red somewhere) |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,765
Karma: 6000000
Join Date: Nov 2009
Device: many
|
All valid epub readers successfully handle the de-obfuscation of fonts properly and internally. Trying to copy those fonts out of the epub they were intended for to use in some other epub is the only way you can cause an issue with auto obfuscation and de-obfuscation. Is that what you are trying to do? If so, that is exactly what font obfuscation was meant to prevent.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,048
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Either leave it alone or replace the fonts entirely with your own suitable face/style "free fonts" using Calibre Editor Font Manager.
|
![]() |
![]() |
![]() |
#4 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,243
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,765
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Agreed. Or someone discarded the encrypt.xml from the META-INF folder by mistake as it is needed to tell the reader which fonts are obfuscated. Or manually edited the opf and erased the key identifiers.
Last edited by KevinH; 12-01-2022 at 06:37 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Dec 2022
Device: android
|
Quote:
As am not tech savvy, could you pls tell me how to get rid obfuscation.. Glad you there to reply, just surfing this forum before, i tried sigil also, but i dont know how to do it.. i have also seen something like "dc:classifier" in content.opf, does this id help in anything? could you pls guide me to deobfuscate or to change font with proper editing needed files. |
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Dec 2022
Device: android
|
|
![]() |
![]() |
![]() |
#8 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,765
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Changing to a different epub ereader should never require manually deobfuscating anything.
The list of obfuscated fonts and obfuscation method is provided by the encrypt.xml file found in the epub's META-INF folder. The data used to obfuscate and deobfuscate depends on obfuscation method and is tied to a specific dc:identifiers in the opf metadata this is sometimes the bookid and another uuid based dc:identifiers. The actually obfuscation algorithm involves a fixed number of bytes (again differs by algorithm) at the top of the font file being xored with data from the opf identifier in a very specific manner. The exact algorithm has been published in the epub spec. But this is not something you can easily manually undo. So as explained earlier, unzip your epub, throw away the broken font files, replace them with known good matching font files (rename exact file if needed), then remove the entire encrypt.xml from the META-INF folder as keeping it will mistakenly cause the reader to obfuscate the font files on load instead of deobfuscating them. Properly rezip up the epub. |
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Dec 2022
Device: android
|
The list of obfuscated fonts and obfuscation method is provided by the encrypt.xml file found in the epub's META-INF folder. The data used to obfuscate and deobfuscate depends on obfuscation method and is tied to a specific dc:identifiers in the opf metadata this is sometimes the bookid and another uuid based dc:identifiers. The actually obfuscation algorithm involves a fixed number of bytes (again differs by algorithm) at the top of the font file being xored with data from the opf identifier in a very specific manner. The exact algorithm has been published in the epub spec. But this is not something you can easily manually undo.
So as explained earlier, unzip your epub, throw away the broken font files, replace them with known good matching font files (rename exact file if needed), then remove the entire encrypt.xml from the META-INF folder as keeping it will mistakenly cause the reader to obfuscate the font files on load instead of deobfuscating them. Properly rezip up the epub.[/QUOTE] My case Is, i bought 3 books from a vendor which happens to be one of main publisher of our language "malayalam". As we know, it can only be opened with desired android app. The app is highly ancient and a total mess. So first i thought it might some custom DRM or something (actually am not sure). But later on , after surging somewhere like mobileread..etc i found obfuscation. I have seen there, the encrypt.xml, and idpf encryption in it, so i thought it might be obfuscation. Any other reader is throwing error, i cant read.. Please help me if possible...... |
![]() |
![]() |
![]() |
#10 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,765
Karma: 6000000
Join Date: Nov 2009
Device: many
|
If you can unzip the epub and open one of the xhtml/html files in a text editor and it can be read by you, then your epub has no drm and you should do what I said above.
If you can not read the text of the xhtml file in a text efitor, then it has drm and we can not help you, as the problem has nothing to do with font obfuscation. |
![]() |
![]() |
![]() |
#11 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,048
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Probably there is also DRM if it only works in the seller's app.
|
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Dec 2022
Device: android
|
I cant read,
Then probably it will be DRM i think.. I think its something custom DRM, any scope in de -DRM? Using any of the tools? |
![]() |
![]() |
![]() |
#13 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,765
Karma: 6000000
Join Date: Nov 2009
Device: many
|
No idea. Check with the author of the deDRM plugin, not here on mobileread.
|
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,073
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
If that is the case with this book you will need an unencrypted version of the same font used in the published book in order to make it readable. |
|
![]() |
![]() |
![]() |
#15 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Dec 2022
Device: android
|
Quote:
The same fonts unencrypted version could be helpful? Can you elaborate on this? I am interested in this topic (indian books DRM) Could you e |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub chinese fonts | ebookscovers | ePub | 11 | 11-29-2021 10:50 AM |
Plugin idea: Obfuscate fonts | PenguinCEO | Plugins | 17 | 11-26-2019 11:02 PM |
EPUB without fonts | roger64 | ePub | 29 | 10-15-2012 11:56 AM |
ePub->ePub conversion with obfuscated fonts | DiapDealer | Conversion | 1 | 03-17-2012 02:33 PM |
ePub embedded fonts | JSWolf | Ectaco jetBook | 9 | 09-14-2009 08:43 PM |