fixed dumb bug and annoying import issues
--HG-- branch : pmacs2
This commit is contained in:
parent
254ba4b0bb
commit
ef3dd28a33
|
@ -1,4 +1,4 @@
|
|||
import aes
|
||||
import aesutil
|
||||
from buffer import FileBuffer
|
||||
|
||||
class AesBuffer(FileBuffer):
|
||||
|
@ -6,7 +6,7 @@ class AesBuffer(FileBuffer):
|
|||
def __init__(self, path, password, name=None):
|
||||
'''ab = AesBuffer(path, password)'''
|
||||
FileBuffer.__init__(self, path, name)
|
||||
self.crypter = aes2.Crypter(password)
|
||||
self.crypter = aesutil.Crypter(password)
|
||||
def read_filter(self, data):
|
||||
return self.crypter.decrypt(data)
|
||||
def write_filter(self, data):
|
||||
|
|
Loading…
Reference in New Issue