aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/aes.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-06-24 16:24:43 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-06-25 00:14:12 +0530
commit14f25df2b6233553e968df023430ca96c0b1df9f (patch)
treec611d59d4462820a9e99726b9179811ed88a35b8 /yt_dlp/aes.py
parent54007a45f11ed730352324289b714baefd2901eb (diff)
downloadhypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.tar.lz
hypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.tar.xz
hypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.zip
[compat] Remove deprecated functions from core code
Diffstat (limited to 'yt_dlp/aes.py')
-rw-r--r--yt_dlp/aes.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/yt_dlp/aes.py b/yt_dlp/aes.py
index d0e6d7549..b3f504977 100644
--- a/yt_dlp/aes.py
+++ b/yt_dlp/aes.py
@@ -1,6 +1,7 @@
+import base64
from math import ceil
-from .compat import compat_b64decode, compat_ord
+from .compat import compat_ord
from .dependencies import Cryptodome_AES
from .utils import bytes_to_intlist, intlist_to_bytes
@@ -264,7 +265,7 @@ def aes_decrypt_text(data, password, key_size_bytes):
"""
NONCE_LENGTH_BYTES = 8
- data = bytes_to_intlist(compat_b64decode(data))
+ data = bytes_to_intlist(base64.b64decode(data))
password = bytes_to_intlist(password.encode())
key = password[:key_size_bytes] + [0] * (key_size_bytes - len(password))