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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9420813515710996184ce2d7b17b7d68c1974271ac3aa9e91b9bf6ceb84b4f8
|
|
| MD5 |
2ca11f74afa61b78706b5cfca256063c
|
|
| BLAKE2b-256 |
941b350e11f78e60fb9d194cc75a6477bb726187845f467f261b8a0cd607cc33
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7396c43bbf9dba1dd3a0c2d5310b4e185a6a3eebb56f2544fd3bb951a5496ef
|
|
| MD5 |
7a77114eaa4d490192902e941f8ed5d8
|
|
| BLAKE2b-256 |
bba485bbeba8e539442b74323c73c10ead38612aedd158375ffcfbceb6ceee7f
|