This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

The randenc package provides simple symmetric message encryption and decryption functions with message packing, compression, cryptographic hashes, and automatically rotated random keys. It is designed for short messages such as user ID tokens and browser cookies. Usage example:

>>> from randenc import RandomEncryption
>>> import tempfile
>>> enc = RandomEncryption(tempfile.mkdtemp())
>>> code = enc.encrypt({u'message': u'Hello, world!'})
>>> len(code)
107
>>> enc.decrypt(code)
{u'message': u'Hello, world!'}

The encryption key and signing key are produced automatically (using os.urandom) and stored in the key directory. Each key will be deleted after one hour by default, invalidating all encrypted codes associated with that key.

The encrypt function packs the content using msgpack, compresses it using zlib (unless the compressed version is larger than than the uncompressed version), encrypts it using AES-128 (since AES-128 seems to be considered more secure than AES-256), signs it using HMAC over SHA-256, and encodes in URL-safe base 64 format. The decrypt function reverses that operation. If the code fails validation or has expired, the decrypt function raises DecryptionError.

This package is designed to be compatible with clusters. The keys may be stored on a shared volume using NFS or a FUSE-based filesystem. With a little work, the keys could be stored in a key-value store such as MongoDB.

Release History

Release History

0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
randenc-0.1.tar.gz (8.0 kB) Copy SHA256 Checksum SHA256 Source Apr 5, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting