projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06947ad
)
[aes] Fix for python 3.2
author
Sergey M․
<dstftw@gmail.com>
Thu, 21 May 2015 18:06:10 +0000
(
00:06
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 21 May 2015 18:06:10 +0000
(
00:06
+0600)
youtube_dl/aes.py
patch
|
blob
|
history
diff --git
a/youtube_dl/aes.py
b/youtube_dl/aes.py
index 07224d5084158184ac30c927b1b79802d398c336..7817adcfdd546f70cfb76e0634b8df8ddbcaf8e0 100644
(file)
--- 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))