Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-05-2010, 12:48 PM   #1
twedigteam
Enthusiast
twedigteam began at the beginning.
 
Posts: 38
Karma: 10
Join Date: Nov 2010
Device: Sony eReader
Sigil/DRM Issues After Update?

Hi all,

We're just in the process of tracking this issue down, not sure if it is our InDesign files or a software bug with Sigil. After updating Sigil to the version just released [0.3.0], our ePub exports from InDesign get the following error:

"The creator of this file has encrypted it with DRM. Sigil cannot open such files."

There is no DRM on the file as we have just exported it from ID, and did not receive this error prior to update. I know this was one of the bugs fixed in Sigil (previously just received a crash error when opening protected ePubs), so I'm not sure if there's suddenly an issue with our .indd files or not?

Anyone else encountering this issue with the new version?
twedigteam is offline   Reply With Quote
Old 11-05-2010, 01:13 PM   #2
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Sigil shows this message when it detects the presence of an "encryption.xml" file in the META-INF folder. This file is placed there only when the creator wants to encrypt the content of his epub. Are you saying that InDesign places an "encryption.xml" file even when the epub is not encrypted? That would be an interesting move by Adobe; extremely stupid, yes, but interesting nonetheless.

I'd like to see that file. Feel free to create an issue on the tracker with the epub attached.
Valloric is offline   Reply With Quote
Advert
Old 11-05-2010, 04:26 PM   #3
twedigteam
Enthusiast
twedigteam began at the beginning.
 
Posts: 38
Karma: 10
Join Date: Nov 2010
Device: Sony eReader
So, thanks for the response first off. It definitely is the case that InDesign creates an encryption.xml file within the META-INF folder, even though there shouldn't be any encryption. We are merely taking a raw .indd, exporting, and cleaning up in Sigil...so, very possibly it could then be some of our InDesign files, as older exports we have done still work fine in the new Sigil.

This is the encryption.xml file:

<encryption xmlns="urnasis:names:tcpendocument:xmlns:conta iner" xmlns:enc="http://www.w3.org/2001/04/xmlenc#" xmlns:deenc="http://ns.adobe.com/digitaleditions/enc"><enc:EncryptedData><enc:EncryptionMethod Algorithm="http://ns.adobe.com/pdf/enc#RC"/><enc:CipherData><enc:CipherReference URI="OEBPS/Fonts/AGaramondPro-Regular.otf"/></enc:CipherData></enc:EncryptedData><enc:EncryptedData><enc:Encrypti onMethod Algorithm="http://ns.adobe.com/pdf/enc#RC"/><enc:CipherData><enc:CipherReference URI="OEBPS/Fonts/AGaramondPro-Italic.otf"/></enc:CipherData></enc:EncryptedData></encryption>
twedigteam is offline   Reply With Quote
Old 11-05-2010, 05:01 PM   #4
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
What version of InDesign are you using?
Valloric is offline   Reply With Quote
Old 11-05-2010, 06:15 PM   #5
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by Valloric View Post
Are you saying that InDesign places an "encryption.xml" file even when the epub is not encrypted?
It will if the ePub has embedded fonts, as is the case here.

The solution is simple - don't embed the fonts.
charleski is offline   Reply With Quote
Advert
Old 11-06-2010, 09:07 AM   #6
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by charleski View Post
It will if the ePub has embedded fonts, as is the case here.

The solution is simple - don't embed the fonts.
That is not the correct solution. If InDesign is encrypting the fonts, then that's a problem with InDesign. One can embed fonts in many different ways (hm, let's say Sigil), and not encrypting them is the best option.

twedigteam, you still haven't provided the epub file with which you are having problems. Please do so. There's a "private issue" template on the tracker if you are worried about others having access to the file.
Valloric is offline   Reply With Quote
Old 11-06-2010, 10:03 AM   #7
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
This has been discussed a while ago on the epub forum. inDesign obfuscates the fonts (there's no real encryption) in order to dissuade people from removing them from the epub. It inserts an encryption.xml to signal this fact. This is not the problem, since some font licences require obfuscation. The real problem is that the epub standard specifies a different obfuscation scheme to that used by Adobe (though frankly this is another area in which the standard is just a result of silly political manoeuvring, since they didn't want to adopt the system already developed by Adobe).

The solution is exactly as I stated: don't embed fonts from inDesign and you won't get the encryption file.

I somehow doubt that twedigteam has a licence to distribute Adobe Garamond anyway.
charleski is offline   Reply With Quote
Old 11-06-2010, 10:06 AM   #8
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Valloric View Post
That is not the correct solution. If InDesign is encrypting the fonts, then that's a problem with InDesign. One can embed fonts in many different ways (hm, let's say Sigil), and not encrypting them is the best option.
A font may be legally embeddable, but not redistributable. I imagine that is why InDesign is encrypting embedded fonts. What can be done other than encryption to prevent a user from simply copying a font out of an ePub file?
HarryT is offline   Reply With Quote
Old 11-06-2010, 10:26 AM   #9
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by charleski View Post
This has been discussed a while ago on the epub forum. inDesign obfuscates the fonts (there's no real encryption) in order to dissuade people from removing them from the epub. It inserts an encryption.xml to signal this fact.
I'm aware of the fact that InDesign can do this, I just wasn't aware that it did it by default.

Quote:
Originally Posted by charleski View Post
This is not the problem, since some font licences require obfuscation.
This is debatable. It is thought that obfuscating a font in the Adobe or IDPF method is enough to placate the foundries, but I've yet to see someone from the foundries confirm that.

Quote:
Originally Posted by charleski View Post
The real problem is that the epub standard specifies a different obfuscation scheme to that used by Adobe (though frankly this is another area in which the standard is just a result of silly political manoeuvring, since they didn't want to adopt the system already developed by Adobe).
Yes, the IDPF specifies one method and Adobe uses another.

Quote:
Originally Posted by charleski View Post
The solution is exactly as I stated: don't embed fonts from inDesign and you won't get the encryption file.
You weren't as specific the first time. You just said that the solution was to "not embed the fonts", and not that it was to "not embed the fonts with InDesign". The first one implies a problem with Sigil, and the second one a problem with InDesign.

I was a bit touchy since you appeared to be the third person today to imply that Sigil has problems with embedded fonts, when the root cause is InDesign being brain-dead.

Quote:
Originally Posted by HarryT View Post
A font may be legally embeddable, but not redistributable. I imagine that is why InDesign is encrypting embedded fonts. What can be done other than encryption to prevent a user from simply copying a font out of an ePub file?
Take a look at the methods I linked to above. A twelve-year-old could write a program to de-obfuscate the fonts that were obfuscated with either method... in about 10 minutes. And the program would only be a few lines of code.

In fact, that's just what I'm about to add to Sigil. A Book Browser right-click context menu for fonts that enable the user to obfuscate or de-obfuscate the font with either method. By default, whatever state the font was in when the epub was opened will be the state in which it will be saved.
Valloric is offline   Reply With Quote
Old 11-06-2010, 10:43 AM   #10
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,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Regardless of what InDesign does, is it really the best option to reject an ePUB file as DRMed just because it contains an "encryption.xml" file? Wouldn't it be better if Sigil could actually determine which files, if any, are encrypted and warn about those?
Jellby is offline   Reply With Quote
Old 11-06-2010, 10:47 AM   #11
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by Jellby View Post
Regardless of what InDesign does, is it really the best option to reject an ePUB file as DRMed just because it contains an "encryption.xml" file? Wouldn't it be better if Sigil could actually determine which files, if any, are encrypted and warn about those?
Quote:
Originally Posted by Valloric View Post
In fact, that's just what I'm about to add to Sigil. A Book Browser right-click context menu for fonts that enable the user to obfuscate or de-obfuscate the font with either method. By default, whatever state the font was in when the epub was opened will be the state in which it will be saved.
There you go. The next version will behave differently. There will be no error displayed since Sigil will support font obfuscation.
Valloric is offline   Reply With Quote
Old 11-07-2010, 01:47 PM   #12
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by Valloric View Post
There you go. The next version will behave differently. There will be no error displayed since Sigil will support font obfuscation.
As of revision 85344072a1, the final version of this feature is now implemented.
Valloric is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
If the July 22 JBL update only has one DRM, which one do you want? Ken Maltby Ectaco jetBook 7 07-18-2010 10:35 PM
Weird formatting issues - Sigil .epub in Calibre viewer december Sigil 9 06-18-2010 04:04 PM
Issues with DRM book manyoo99 Sony Reader 1 10-03-2009 10:41 AM
Sigil editing Issues -- must be addressed arvinder Sigil 4 08-06-2009 07:36 AM
windows reinstall/drm issues elf Sony Reader 1 03-29-2007 03:34 PM


All times are GMT -4. The time now is 11:14 AM.


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