git://developer.intra2net.com
/
python-delta-tar
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
862b372
)
Fixing AESCrypt stupid bug
author
Daniel Garcia Moreno
<danigm@wadobo.com>
Thu, 1 Aug 2013 08:58:23 +0000 (10:58 +0200)
committer
Daniel Garcia Moreno
<danigm@wadobo.com>
Thu, 1 Aug 2013 08:58:23 +0000 (10:58 +0200)
deltatar/aescrypto.py
patch
|
blob
|
blame
|
history
diff --git
a/deltatar/aescrypto.py
b/deltatar/aescrypto.py
index
81ac1e5
..
4e2f4e3
100644
(file)
--- a/
deltatar/aescrypto.py
+++ b/
deltatar/aescrypto.py
@@
-86,8
+86,9
@@
class AESCrypt:
self.buf += chunk
if len(self.buf) % self.bs == 0:
+ cipher = self.cipher.encrypt(self.buf)
self.buf = ''
- return self.cipher.encrypt(self.buf)
+ return cipher
cipher = ''
while len(self.buf) >= self.bs: