Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

选择课程下载就报错啦,是AES key长度的问题 #7

Open
du21977 opened this issue Jun 1, 2020 · 0 comments
Open

选择课程下载就报错啦,是AES key长度的问题 #7

du21977 opened this issue Jun 1, 2020 · 0 comments

Comments

@du21977
Copy link

du21977 commented Jun 1, 2020

Traceback (most recent call last):
File "C:/51cto-video-download-master/run.py", line 34, in
fun(ss)
File "C:\51cto-video-download-master\Course.py", line 7, in run
lesson.Lesson(ss).set_course_id_by_course_list().lesson_list().download()
File "C:\51cto-video-download-master\cto\lesson.py", line 168, in download
tools.download(file_name, urls, func_decode)
File "C:\51cto-video-download-master\cto\tools.py", line 42, in download
data = func_decode(data)
File "C:\51cto-video-download-master\cto\lesson.py", line 166, in func_decode
return decory_video.Video().decory(play_key, str(lesson_id), video_data)
File "C:\51cto-video-download-master\cto\decory_video.py", line 18, in decory
cipher = AES.new(key, AES.MODE_ECB, iv)
File "C:\51cto-video-download-master\venv\lib\site-packages\Crypto\Cipher\AES.py", line 95, in new
return AESCipher(key, *args, **kwargs)
File "C:\51cto-video-download-master\venv\lib\site-packages\Crypto\Cipher\AES.py", line 59, in init
blockalgo.BlockAlgo.init(self, _AES, key, *args, **kwargs)
File "C:\51cto-video-download-master\venv\lib\site-packages\Crypto\Cipher\blockalgo.py", line 141, in init
self._cipher = factory.new(key, *args, **kwargs)
ValueError: AES key must be either 16, 24, or 32 bytes long

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

No branches or pull requests

1 participant