Skip to main content

No project description provided

Project description

vimdecrypt

Command line tool for decrypting vim-blowfish-encrypted files.

As of version 7.3 vim offers built in blowfish encryption/decryption. Unfortunately the resulting files can only be read back by vim, precluding batch processing or scripting. Also longevity of encrypted data is a concern if a program with the dependencies and size of vim is required to unlock it.

This project provides a very simpe vimdecrypt Python module for decrypting blowfish-encoded file objects, as well as the vimdecrypt command line tool for decrypting files to stdout.

encryption methods

Vimdecrypt supports only blowfish2 encryption. Files encrypted using either zip or blowfish should be converted using :set cm=blowfish2 prior to using this tool.

requirements

Besides Python 3, vimdecrypt requires any one of PyCryto, PyCryptoDome or blowfish to be installed.

installation

Both the Python module and the command line tool are installable via Pip:

$ pip install [--user]

This will install the blowfish module by default

usage

With ~/.local/bin in your executable path, decrypt any file to stdout using:

$ vimdecrypt [path]

If the path argument is omitted then data is read from stdin:

$ cat somefile | vimdecrypt

Note that the password is obtained via GNU getpass which does not interfere with stdin/stdout redirection.

The Python module defines only the decrypt method:

>>> import vimdecrypt
>>> with open('somefile', 'rb') as f:
>>>   text = vimdecrypt.decrypt(f)

credits

Thanks to @nlitsme for demonstrating blowfish decryption in Python. His identically named vimdecrypt project supports multiple encryption methods as well as password cracking.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vimdecrypt-2.1.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vimdecrypt-2.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file vimdecrypt-2.1.0.tar.gz.

File metadata

  • Download URL: vimdecrypt-2.1.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.15

File hashes

Hashes for vimdecrypt-2.1.0.tar.gz
Algorithm Hash digest
SHA256 e9420813515710996184ce2d7b17b7d68c1974271ac3aa9e91b9bf6ceb84b4f8
MD5 2ca11f74afa61b78706b5cfca256063c
BLAKE2b-256 941b350e11f78e60fb9d194cc75a6477bb726187845f467f261b8a0cd607cc33

See more details on using hashes here.

File details

Details for the file vimdecrypt-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: vimdecrypt-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.15

File hashes

Hashes for vimdecrypt-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7396c43bbf9dba1dd3a0c2d5310b4e185a6a3eebb56f2544fd3bb951a5496ef
MD5 7a77114eaa4d490192902e941f8ed5d8
BLAKE2b-256 bba485bbeba8e539442b74323c73c10ead38612aedd158375ffcfbceb6ceee7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page