Skip to main content

File encryption and decryption module extracted from Skyhook

Project description

skyhookfilecrypt

Multithreaded file encryption and decryption module extracted from Skyhook: https://github.com/deedeecx330/skyhook

Designed to be both fast and easy on the resources.

Usage

The module has two functions, encryptFile and decryptFile. The function arguments in both cases are:

  • File that is to be encrypted/decrypted
  • Output file where encrypted/decrypted contents will be saved to
  • A passphrase to encrypt/decrypt the file with (Can be any primitive data type)

For example

skyhookfilecrypt.encryptFile("file.in", "file.out", b"password")

will encrypt file.in with the given password and write the encrypted contents of file.in to file.out. Same principle works for decrypting files:

skyhookfilecrypt.decryptFile("file.in", "file.out", b"password")

will decrypt file.in with the given password and write the decrypted contents to file.out.

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

skyhookfilecrypt-1.2.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file skyhookfilecrypt-1.2.tar.gz.

File metadata

  • Download URL: skyhookfilecrypt-1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for skyhookfilecrypt-1.2.tar.gz
Algorithm Hash digest
SHA256 dc5fb505caae8e7ace8a61f13d6714be4dd2f0ee2eb321e4d081876a25e01c68
MD5 ea087327fa12192486d50650ab24509e
BLAKE2b-256 25289170f2b77322271c08c0f5775bae242c75ce3eb2b3911519d1b4ca8af48c

See more details on using hashes here.

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