Skip to main content

A package for encrypting and decrypting text and image files

Project description

File Manipulation

File Manipulation is a Python package that provides utilities for encrypting and decrypting both text and image files.

Installation

You can install File Manipulation via pip:

pip install file-manipulation

Features

Text File Encryption and Decryption

You can encrypt and decrypt text files using the following functions:

from file_manipulation import encrypt_textfile, decrypt_textfile

# Encrypt a text file
encrypt_textfile('input.txt', 'encrypted.txt')

# Decrypt a text file
decrypt_textfile('encrypted.txt', 'decrypted.txt')

Image File Encryption and Decryption

File Manipulation also supports encryption and decryption of image files:

from file_manipulation import encrypt_imagefile, decrypt_imagefile

# Encrypt an image file
encrypt_imagefile('input.jpg', 'encrypted.txt')

# Decrypt an image file
decrypt_imagefile('encrypted.txt', 'decrypted.jpg')

Usage

Command Line Interface

File Manipulation provides command-line interfaces (CLI) for performing encryption and decryption directly from the terminal.

To encrypt a text file:

file-manipulation-encrypt input.txt encrypted.txt

To decrypt a text file:

file-manipulation-decrypt encrypted.txt decrypted.txt

To encrypt an image file:

file-manipulation-encrypt-image input.jpg encrypted.txt

To decrypt an image file:

file-manipulation-decrypt-image encrypted.txt decrypted.jpg

License

This project is licensed under the MIT License - see the LICENSE file for details.


This README.md provides an overview of your package, installation instructions, features, usage examples, and license information. Feel free to further customize it to include more details about your package or any additional functionalities.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Encrypt_decrypt_tfi-1.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

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