https://github.com/hellman/cry
SageMath/Python Toolkit for Cryptanalytic Research
https://github.com/hellman/cry
cryptanalysis cryptography cryptography-algorithms cryptography-library cryptography-tools research s-boxes
Last synced: 9 months ago
JSON representation
SageMath/Python Toolkit for Cryptanalytic Research
- Host: GitHub
- URL: https://github.com/hellman/cry
- Owner: hellman
- Created: 2019-01-12T15:04:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-11T17:24:06.000Z (over 3 years ago)
- Last Synced: 2025-04-04T11:05:52.422Z (9 months ago)
- Topics: cryptanalysis, cryptography, cryptography-algorithms, cryptography-library, cryptography-tools, research, s-boxes
- Language: Python
- Homepage:
- Size: 117 KB
- Stars: 39
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cry: SageMath/Python Toolkit for Cryptanalytic Research
This repository contains a bunch of various crypto-related algorithms implemented in Python 3 and SageMath. Pure Python code is located in cry/py package and can be imported from python code. The other modules must be imported from the SageMath interpreter.
The most significant part is formed by S-Box analysis algorithms, implemented in the cry.sbox2.SBox2 class, which is similar to from sage.crypto.SBox but is much more rich. Another cool S-Box library is [SboxU](https://github.com/lpp-crypto/sboxU) by Léo Perrin. It contains some more advanced algorithms, highly recommended!
**WARNING:** This library is not well-shaped yet and many things (including API and structure) may change in future. For now, I will try to keep compatability only for minor versions. That is, lock to the minor version if you use this package.
**NOTE** Before, this library was called *cryptools*, but since this name is used on PyPI, I decided to switch to *cry*, which is shorter.
Currently, there is no documentation but examples will be added soon.
## Installation
```bash
# for SageMath
$ sage pip install -U cry
# for python3
$ pip3 install -U cry
```
Previous python2 version (cryptools) can be found in the tag *py2-arhived*.
## Development
For development or building this repository, [poetry](https://python-poetry.org/) is needed.