From 285faea35bf52eb5baceb4515a96dc138d0e0ffd Mon Sep 17 00:00:00 2001 From: Daniel Garcia Moreno Date: Thu, 1 Aug 2013 10:58:23 +0200 Subject: [PATCH] Fixing AESCrypt stupid bug --- deltatar/aescrypto.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/deltatar/aescrypto.py b/deltatar/aescrypto.py index 81ac1e5..4e2f4e3 100644 --- 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: -- 1.7.1