Skip to main content

Cry: SageMath/Python Toolkit for Cryptanalytic Research

Project description

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 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

# 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 is needed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cry-0.2.0.tar.gz (39.6 kB view details)

Uploaded Source

Built Distribution

cry-0.2.0-py3-none-any.whl (50.9 kB view details)

Uploaded Python 3

File details

Details for the file cry-0.2.0.tar.gz.

File metadata

  • Download URL: cry-0.2.0.tar.gz
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.0rc1 CPython/3.8.5 Linux/5.4.0-47-generic

File hashes

Hashes for cry-0.2.0.tar.gz
Algorithm Hash digest
SHA256 061c72282045e97761d7eb4212b3278bd37b8823b3ec89fa3320cdf399a88e08
MD5 69cffe04a304fc85e9c54e08a49d2d10
BLAKE2b-256 5397f1a9460c04237be7e699cc05415824960b39b173a0527e23e98ef7a42af5

See more details on using hashes here.

File details

Details for the file cry-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cry-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 50.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.0rc1 CPython/3.8.5 Linux/5.4.0-47-generic

File hashes

Hashes for cry-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e162632e90de7566953b684b22731fecfe635eb0cab8b8d14d5a96d8be97fcd
MD5 451b2ae9187fde712c7a8ad8fd9e9e2c
BLAKE2b-256 c3bc233f81fc8d37f3ef90a0c73bd6e7a5d0a8b84a1a929b5d27af47827fcb2e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page