Skip to content

shtouff/python-cast6ecb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Purpose

This extension is aimed at helping people who still needs a binding to libmcrypt because they need to use CAST-256 (CAST6) algorithm, in ECB mode.

As far as I know (I may be wrong at this point, feel free to correct me if it's the case), none of the other python crypto libs (either semi-native like pycrypto or Cpython like openssl) still implement this algorithm. Even libsodium, which was chosen by the PHP community as a replacement for mcrypt in php72, does not implement it.

Since I needed to decrypt some specific things that were encrypted with this algo, using python3, I created this extension to achieve that very specific goal. It is focused on CAST-256-ECB because that was my need, and I hope this will be very temporary.

I strongly advise people to upgrade both the algorithm they use (CAST-256 to AES for example) and the underlying library too (libmcrypt to openssl or libsodium).

Build the extension

Build locally

$ python3 setup.py build

Run the tests:

$ python3 setup.py test

Push to pypi

Please follow the procedure that is explained here: https://packaging.python.org/en/latest/tutorials/packaging-projects/

If you choose to rehearse using the TestPypi platorm, keep in mind they trash everything (accounts, packages) from time to time.

About

A mcrypt binding for CAST-256-ECB only.

Resources

Stars

Watchers

Forks

Packages

No packages published