Skip to main content

A module for file encryption and decryption

Project description

PyFileCrypto

Overview

The PyFileCrypto Module is a Python library for encrypting and decrypting files, compressing and extracting zip files with password protection. It utilizes cryptography.fernet for encryption and pyzipper for handling zip files with AES encryption.

Features

  • File Encryption and Decryption: Encrypt and decrypt files with strong AES encryption.
  • Key Management: Generate and securely store keys for encryption and decryption.
  • Zip Compression: Compress files into zip archives.
  • Password-Protected Zip Files: Create and extract zip files with password protection.

Installation

To install the Crypto Module, use the following command:

pip install pyfilecrypto

Usage

Generate Encryption Key and Encrypt File

from pyfilecrypto import crypto
crypto.encFile("test.txt", "test.enc", "my_secret.key")

Decrypt a File

from pyfilecrypto import crypto
crypto.decFile("test.enc", "test.txt", "my_secret.key")

Generate Encryption Key and Encrypt File

from pyfilecrypto.crypto import *
crypt(filename = "test.txt", method = "encrypt")

Decrypt

from pyfilecrypto.crypto import *
crypt(filename = "test.txt", method = "decrypt")

or

from pyfilecrypto.crypto import Crypto
Crypto.crypt(filename = "test.txt", method = "encrypt", password = "password")
Crypto.crypt(filename = "test.txt", method = "decrypt", password = "password")

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

pyfilecrypto-1.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

pyfilecrypto-1.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file pyfilecrypto-1.0.1.tar.gz.

File metadata

  • Download URL: pyfilecrypto-1.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pyfilecrypto-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9bf8896f4e97a4dce9d553a754055ec888e48593d2290ae6c7dd1331d73c0415
MD5 b931891b7e893d94055c11dd9595201f
BLAKE2b-256 b7a75c251dc2ae39dee2a213d5df7324aeea97bb3af30987caf3642d2078e772

See more details on using hashes here.

File details

Details for the file pyfilecrypto-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyfilecrypto-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pyfilecrypto-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 88f506a75606634fbc1d5e60e634ebdd77f31b1c8a34cacc02abcd9cdc31a7e1
MD5 467c9cf3bf41df2d90299601e44a69bf
BLAKE2b-256 2fdcc3e517163047be2a241dca1f435bbfd39ddb847077d976fedeb7889cc690

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