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.5.tar.gz (38.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cry-0.2.5-py3-none-any.whl (52.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cry-0.2.5.tar.gz
  • Upload date:
  • Size: 38.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for cry-0.2.5.tar.gz
Algorithm Hash digest
SHA256 89e2da485c4cb3c339a9b1e4abe6c9d090a4c58442ff5a8c0aa58f1af37a1f8e
MD5 92131546b9159270c2acf7244ef63ad9
BLAKE2b-256 b97eb661d498a2e00b1cdde4cddb250c4cf5565a40e1f816e08b92ce55cc6d0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cry-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 52.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for cry-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a8256e0ae4f3a41e4d68193318c6787468396eed28017530c0ff2ab1e29f8540
MD5 0c1c73b8d899020eb2005885151358d1
BLAKE2b-256 faa0553a1f562e3e0856594ca57748b70673ece2b3613abe4b9bedf9087e82f0

See more details on using hashes here.

Supported by

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