aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-05-22 00:06:10 +0600
committerSergey M․ <dstftw@gmail.com>2015-05-22 00:06:10 +0600
commit878563c847fa5248eedbd44187536dec04643eaf (patch)
tree03f481027b42208ee43e03e965ac09238ecc93f6 /youtube_dl
parent06947add03b6b619292812a771993d3365b0e7e5 (diff)
[aes] Fix for python 3.2
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/aes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/aes.py b/youtube_dl/aes.py
index 07224d508..7817adcfd 100644
--- a/youtube_dl/aes.py
+++ b/youtube_dl/aes.py
@@ -152,7 +152,7 @@ def aes_decrypt_text(data, password, key_size_bytes):
"""
NONCE_LENGTH_BYTES = 8
- data = bytes_to_intlist(base64.b64decode(data))
+ data = bytes_to_intlist(base64.b64decode(data.encode('utf-8')))
password = bytes_to_intlist(password.encode('utf-8'))
key = password[:key_size_bytes] + [0] * (key_size_bytes - len(password))