Skip to content

Scripting Interface #59

@tsmanner

Description

@tsmanner

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions