Re:Extracting content from an LCP "protected" ePub
by baruchel on Monday March 17, 2025 @01:13PM
(#43390619)
A more straightforward way to do it, IMHO, is to use Thorium in conjunction with a Python script called lcpdedrm. If I remember well, that script isn't available directly any longer, but it is easy to look around and find copies of it. Then use Thorium for locally saving the file and use the Python script for removing the DRM.
[ Parent
| on HN ]
Re:Extracting content from an LCP "protected" ePub
by miki123211 on Monday March 17, 2025 @01:44PM
(#43390926)
Why do you even need Thorium for this?
If the files are just AES-encrypted and the links are there, as the linked article suggest, it seems that it would be easy to create a standalone script to download and decrypt these.
Re:Extracting content from an LCP "protected" ePub
by edent on Monday March 17, 2025 @01:57PM
(#43391051)
(OP here) I discussed how the DRM works in an earlier blog post - https://shkspr.mobi/blog/2025/03/some-thoughts-on-lcp-ebook-...
Essentially, the key for decrypting the files is made up of the book owner's passphrase and the super-secret key embedded in the closed-source binary.
I wasn't able to reverse engineer the binary or extract that key.
Re:Extracting content from an LCP "protected" ePub
by ShrimpHawk on Monday March 17, 2025 @04:55PM
(#43392655)
The key is b3a07c4d42880e69398e05392405050efeea0664c0b638b7c986556fa9b58d77b31a40eb6a4fdba1e4537229d9f779daad1cc41ee968153cb71f27dc9696d40f
Re:Extracting content from an LCP "protected" ePub
by edent on Monday March 17, 2025 @05:01PM
(#43392705)
No, it isn't. That's the key for LCP Profile 1.0 - which was deprecated some time ago - https://readium.org/lcp-specs/notes/lcp-profile-upgrade.html