Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python wrapper around the Camellia encryption library

Project Description

CamCrypt is a simple Python wrapper around one of the open source
implementations of the Camellia encryption library. It makes use of
the Python ctypes module to reference the functions available in the
C library.


The current version is only setup for Unix/Linux environments, but
should be easy to modify for MS-Windows for those familiar with the
Python ctypes modules.


First, compile the C code into a shared library:
$ make

Next, copy the shared library and Python file to your project:
$ cp DEST/

Import the module into your script:
import camcrypt
Create a CamCrypt object, providing it the shared library path:
mycrypt = camcrypt.CamCrypt(LIBRARY_PATH)
Initialize the keytable with the number of key bits and a key/passphrase:
mycrypt.keygen(128, "password")
Encrypt in blocks of 16 bytes:
ciphertext = mycrypt.encrypt(plaintext)
Or decrypt in blocks of 16 bytes:
plaintext = mycrypt.decrypt(ciphertext)


Updates and contact information may be found on the project's website:

Current version is 1.2.0, corresponding with the C implementation
included with this module. The C code was copied from:

Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
camcrypt-1.2.0.tar.gz (20.3 kB) Copy SHA256 Checksum SHA256 Source Dec 20, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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