Skip to content

user_key from Thorium Reader #7

Open
@edent

Description

@edent

When I download an LCP file using Thorium, I get a license.lcpl file and an encrypted ePub.

The license contains:

"user_key": {
         "algorithm": "http://www.w3.org/2001/04/xmlenc#sha256",
         "text_hint": "Account Username",
         "key_check": "abc123=="
}

If I use

./lcp-decrypt -userKey example book.epub decode.epub

I get error decrypting file: error decoding user key: encoding/hex: invalid byte: U+0078 'x'

If I hex encode the userKey, I get invalid key size.

If I SHA256 encode my username, I get error getting content key: error decrypting key check: invalid padding length 144 (data length is 48)

Any thoughts on what the correct key would be?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions