From 89d9b8ed3319c44ecf9107f6bea2b27d8450dad2 Mon Sep 17 00:00:00 2001 From: moculus Date: Sun, 8 Jul 2007 20:00:28 +0000 Subject: [PATCH] fixed aes support --HG-- branch : pmacs2 --- buffer2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buffer2.py b/buffer2.py index 2e479a3..b0b2b79 100644 --- a/buffer2.py +++ b/buffer2.py @@ -454,11 +454,11 @@ class FileBuffer(Buffer): self.save() class AesBuffer(FileBuffer): - def __init__(self, path, password, nl='\n'): + def __init__(self, path, password, nl='\n', name=None): '''fb = FileBuffer(path)''' - FileBuffer.__init__(self, path, nl) + FileBuffer.__init__(self, path, nl, name) self.password = password def read_filter(self, data): - return aes.decrypt(data, self.password) + return aes.decrypt_data(data, self.password) def write_filter(self, data): - return aes.encrypt(data, self.password) + return aes.encrypt_data(data, self.password)