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)