Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripting Interface #59

Open
tsmanner opened this issue Apr 17, 2018 · 0 comments
Open

Scripting Interface #59

tsmanner opened this issue Apr 17, 2018 · 0 comments
Labels
enhancement New feature or request Epic

Comments

@tsmanner
Copy link
Collaborator

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 python application could be encrypted using the same credentials.
  • ftp wrapper 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]
@tsmanner tsmanner added enhancement New feature or request Epic labels Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Epic
Projects
None yet
Development

No branches or pull requests

1 participant