Skip to main content

Transparent encryption and decryption for file-like objects

Project description

encrypted-stream

Documentation Status

Warning: This is still very much work in progress and you probably shouldn't use it yet.

This module allows you to wrap an unencrypted file in a special reader class. The reader behaves exactly like a normal file, except that all data you read from it is encrypted. It uses a special encryption protocol which allows it to encrypt almost arbitrarily large files¹ while using no extra disk space and very little RAM (around 1 MB). It even allows you to jump to different locations in the output, which is useful if you're using it to upload a file and need to restart the upload.

There is also a counterpart writer that accepts the encrypted stream and decrypts it into an underlying file.


¹ There is a theoretical maximum of a few petabytes of data, but I don't expect anyone to run into this ^^

Project details


Download files

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

Files for encrypted-stream, version 0.1a0
Filename, size File type Python version Upload date Hashes
Filename, size encrypted_stream-0.1a0-py3-none-any.whl (11.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size encrypted-stream-0.1a0.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page