AES


 if len(key): # AES 解密

                cryptor = AES.new(key, AES.MODE_CBC, key)

                with open(os.path.join(download_path, c_fule_name + ".mp4"), 'ab') as f:

                    f.write(cryptor.decrypt(res.content))

            else:

                with open(os.path.join(download_path, c_fule_name), 'ab') as f:

                    f.write(res.content)

                    f.flush()

你可能感兴趣的:(AES)