|
|
#91 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,041
Karma: 150831497
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#92 |
|
Bibliophist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,067
Karma: 7319684
Join Date: Dec 2021
Location: England
Device: none
|
I imagine ep***r will be rubbing their hands in glee with this release.
|
|
|
|
|
|
#93 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,041
Karma: 150831497
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
|
|
|
|
#94 | |
|
Member
![]() ![]() Posts: 11
Karma: 110
Join Date: Feb 2021
Device: KOA3, PW2, PW, KT2
|
Quote:
The script first determines if the file is LCP-protected by searching for specific metadata files like META-INF/license.lcpl and META-INF/encryption.xml. Code:
# From tryParseAsLCPType
if "id" in license and "encryption" in license and "profile" in license["encryption"]:
return ("epub", license)
Code:
# From LCPTransform.secret_transform_profile20
blk = blake(masterkey, 64)
crc = crc32bts(blk)
adlr = adler32bts(blk)
strn = blk + crc + adlr
hmac = hmac256(adlr, strn)
return binascii.hexlify(hashlib.sha256(hmac).digest()).decode("latin-1")
Code:
# From decryptLCPbook
decrypted = dataDecryptLCP(key_check, transformed_hash)
if (decrypted is not None and decrypted.decode("ascii", errors="ignore") == license["id"]):
correct_password_hash = transformed_hash
Code:
# From Decryptor.decrypt aes = AES.new(self.book_key, AES.MODE_CBC, data[:16]) data = aes.decrypt(data[16:]) # Fix padding and decompress data, was_decomp = self.decompress(data) Last edited by vila; Yesterday at 07:23 AM. |
|
|
|
|
|
|
#95 |
|
Member
![]() ![]() Posts: 11
Karma: 110
Join Date: Feb 2021
Device: KOA3, PW2, PW, KT2
|
|
|
|
|
|
|
#96 |
|
Member
![]() ![]() Posts: 11
Karma: 110
Join Date: Feb 2021
Device: KOA3, PW2, PW, KT2
|
Quote:
Last edited by pdurrant; Yesterday at 03:12 AM. |
|
|
|
|
|
#97 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,446
Karma: 30087138
Join Date: Mar 2010
Location: UK
Device: Kobo Forma, Icarus, iPad Mini 2, Kobo Touch, Google Nexus 7
|
Where is the key taken from? Unlike ADE, I don't have any Thorium app set up, I just have the DeLCPL plug-in for Calibre (similar to the DeASCM plug-in).
|
|
|
|
|
|
#98 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 50,179
Karma: 178398938
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
You need to enter the passphrase you used for the download for the decryption. Most sites allow you to enter a passphrase used for that site while others use part of your email address
|
|
|
|
|
|
#99 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,041
Karma: 150831497
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
|
|
|
|
#100 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,539
Karma: 81412473
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I wonder if the person who posted on gitflic took it from epubor. if so, fair turnabout....
|
|
|
|
|
|
#101 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,818
Karma: 80512154
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Actually the python code added to the plugin is based on the original python source that was removed from DeDRM with just some additions to handle additional LCP versions. A diff shows many, many identical lines of code
Sent from my TB350FU using Tapatalk |
|
|
|
|
|
#102 | |
|
Member
![]() ![]() Posts: 11
Karma: 110
Join Date: Feb 2021
Device: KOA3, PW2, PW, KT2
|
Quote:
also found https://gitflic.ru/project/mikudaio/dedrm-lcp-extended |
|
|
|
|
|
|
#103 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 50,179
Karma: 178398938
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
|
|
|
|
|
#104 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,446
Karma: 30087138
Join Date: Mar 2010
Location: UK
Device: Kobo Forma, Icarus, iPad Mini 2, Kobo Touch, Google Nexus 7
|
Quote:
Well, I'll have a bash at installing it later on. |
|
|
|
|
|
|
#105 |
|
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,880
Karma: 319401478
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Extremely wide images converted to attachments.
|
|
|
|
![]() |
| Tags |
| drm, lcp |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Converting a fixed layout LCP DRM protected ebook | SvenSND | Conversion | 15 | 09-23-2024 02:45 PM |
| LCP Certification? | rcentros | Tolino | 7 | 06-18-2019 10:28 PM |
| Extracting files from ePub on iPad/iMac | AlanHK | ePub | 12 | 05-11-2016 03:24 AM |
| Extracting html/images from within .imp files! | nrapallo | IMP | 12 | 03-10-2009 11:22 PM |
| Extracting pdb files from Palm Installer | bpwhistler | Alternative Devices | 0 | 11-15-2008 04:07 PM |