mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 17:18:30 +02:00
Merge pull request #7 from nejdetckenobi/master
Padding for `base64.b64decodestring` changed into `b'==='`.
This commit is contained in:
commit
b080f778be
1 changed files with 1 additions and 3 deletions
|
@ -107,9 +107,7 @@ def base642binary(b64_fname):
|
|||
#b64_str = fin.read()
|
||||
#fin.close()
|
||||
# Decode base64 string to original binary sound object
|
||||
missing_padding = 4 - len(b64_fname) % 4
|
||||
if missing_padding:
|
||||
b64_fname += b'='* missing_padding
|
||||
b64_fname += b'==='
|
||||
return base64.decodestring(b64_fname)
|
||||
|
||||
#return base64.b64decode(b64_fname)
|
||||
|
|
Loading…
Add table
Reference in a new issue