-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
A clean API for interacting with vimcrypted files directly through python would be a huge boon. For example:
- Encrypting a large output file
- Ability to open and edit it in
vim. - Parser written in
python, using the exact header+encryption library. - Output from a data mining
pythonapplication could be encrypted using the same credentials.
- Ability to open and edit it in
ftpwrapper could encrypt/decrypt data headed to or from a system.
API:
from encryptionengine import EncryptedIO, AesEngine
with EncryptedIO("some-file", cipher=AesEngine) as fl:
for line in fl:
# Do stuff with the plaintext lines!
my_parser.parse(line)
with EncryptedIO("parsed-file", cipher=AesEngine) as fl:
[fl.write(line) for line in my_parser.parsed_data]