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.
= CAVEATS =
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.
= USAGE =
First, compile the C code into a shared library:
$ make
Next, copy the shared library and Python file to your project:
$ cp camellia.so camcrypt.py 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)
= BASIC INFORMATION =
Updates and contact information may be found on the project's website:
https://github.com/knowmalware/camcrypt
Current version is 1.2.0, corresponding with the C implementation
included with this module. The C code was copied from:
http://info.isl.ntt.co.jp/crypt/eng/camellia/dl/camellia-GPL-1.2.0.tar.gz
Metadata
Release files for camcrypt 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| camcrypt-1.2.0.tar.gz | 20.3 kB | Without provenance | Details for camcrypt-1.2.0.tar.gz |
Release files / camcrypt-1.2.0.tar.gz
| Download URL | camcrypt-1.2.0.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
267ca9f08b27013536f82f556c16a4af4026d903954ab69a7da6f6299cedbdbd
|
|
BLAKE2b-256 checksum How to use checksums |
ffaee4b22249436e9ffa96f3c80111da42853fe3e541cf73575319132628bee8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for camcrypt 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.