Skip to main content

A module for file encryption and decryption

Project description

PyFileCrypto

PyFileCrypto is a Python module for easy encryption and decryption of files using the cryptography library. It provides a simple interface to generate encryption keys, encrypt files, and decrypt files securely.

Installation

You can install PyFileCrypto using pip:

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")

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-0.2.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

pyfilecrypto-0.2.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyfilecrypto-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8c9d499251d9a22b866622f34481bd51537b241a645d654d44d78bd11b1d2c12
MD5 b533465e45a395c026c2b016f65d671b
BLAKE2b-256 c4b464e40ca2e578965e8ba17b9d161f0fa122214d8a5ee3dfdaa26a99ec8946

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyfilecrypto-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd4aaa9f263d12a075b45cc2b5af6451d6468c6facf3973b6b4c013b023c6f3f
MD5 1803368105ba5525dadda25486cc0cbf
BLAKE2b-256 ef328c2951c6dae85289b1ecbe0164701a2f882b8e0e88e584e2940190e56738

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