Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Ciphertext with incorrect length. #79

Open
bassamh1977 opened this issue Jul 24, 2022 · 2 comments
Open

ValueError: Ciphertext with incorrect length. #79

bassamh1977 opened this issue Jul 24, 2022 · 2 comments

Comments

@bassamh1977
Copy link

bassamh1977 commented Jul 24, 2022

Hello ,
I ran the l3.py eyerything looks good and I get the license_content.bin file but I got this error .

Traceback (most recent call last):
  File "C:\widevine\l3.py", line 130, in <module>
    correct, keys = WV_Function(pssh, lic_url)
  File "C:\widevine\l3.py", line 94, in WV_Function
    wvdecrypt.update_license(license_b64)
  File "C:\widevine\wvdecryptcustom.py", line 58, in update_license
    self.cdm.provide_license(self.session, license_b64)
  File "C:\widevine\cdm\cdm.py", line 285, in provide_license
    session.session_key = oaep_cipher.decrypt(license.SessionKey)
  File "C:\Users\PEO.MAD\AppData\Roaming\Python\Python310\site-packages\Cryptodome\Cipher\PKCS1_OAEP.py", line 167, in decrypt
    raise ValueError("Ciphertext with incorrect length.")
ValueError: Ciphertext with incorrect length.

I don't know how to solve this issue.

@it4tk
Copy link

it4tk commented Aug 26, 2022

Any one got this error ?

@Polaris0112
Copy link

Polaris0112 commented Sep 29, 2022

same issue. Already change headers.py and update l3.py to support the website.

Traceback (most recent call last):
  File "/*/widevine_keys/l3.py", line 128, in <module>
    correct, keys = WV_Function(pssh, lic_url)
  File "/*/widevine_keys/l3.py", line 123, in WV_Function
    wvdecrypt.update_license(license_b64)
  File "/*/widevine_keys/wvdecryptcustom.py", line 58, in update_license
    self.cdm.provide_license(self.session, license_b64)
  File "/*/widevine_keys/cdm/cdm.py", line 285, in provide_license
    session.session_key = oaep_cipher.decrypt(license.SessionKey)
  File "/*/widevine_keys/venv/lib/python3.9/site-packages/Cryptodome/Cipher/PKCS1_OAEP.py", line 167, in decrypt
    raise ValueError("Ciphertext with incorrect length.")
ValueError: Ciphertext with incorrect length.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants