gtback / camcrypt Goto Github PK
View Code? Open in Web Editor NEWThis project forked from knowmalware/camcrypt
Python wrapper for a Camellia encryption library.
License: GNU General Public License v2.0
This project forked from knowmalware/camcrypt
Python wrapper for a Camellia encryption library.
License: GNU General Public License v2.0
= 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.