camcrypt-1.2.0
توضیحات
Python wrapper around the Camellia encryption library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | camcrypt-1.2.0 |
| نام | camcrypt |
| نسخه کتابخانه | 1.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Frank Poz |
| ایمیل نویسنده | knowmalware@gmail.com |
| آدرس صفحه اصلی | http://github.com/knowmalware/camcrypt |
| آدرس اینترنتی | https://pypi.org/project/camcrypt/ |
| مجوز | UNKNOWN |
= OVERVIEW =
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
نحوه نصب
نصب پکیج whl camcrypt-1.2.0:
pip install camcrypt-1.2.0.whl
نصب پکیج tar.gz camcrypt-1.2.0:
pip install camcrypt-1.2.0.tar.gz