Skip to main content

A library for Ciphertext Ecosystem models.

Project description

C# Ciphertext Ecosystem Python Models

This dependency defines the models for the ciphertext ecosystem, used for building tools that will help solve unsolved ciphers.

Usage

First, install the package with pip install ctes-models-py.

Example usage of the models:

import ctes_models_py.model as ct

b = bytes.fromhex('aa bc de ff') # Convert hex to bytes
my_ct_encoding = ct.EncodingMetadata(encoding=ct.Encoding.BASE_CONVERSION, base=16)
my_ct_metadata = ct.CiphertextMetadata(type='', encoding=my_ct_encoding)
my_ct = ct.Ciphertext(bytes=b, metadata=my_ct_metadata)
print(my_ct) # Ciphertext bytes
print(my_ct.bytes.hex(' ')) # Ciphertext converted back to hex

Generating the model

Requires installing the Protoc CLI.

Run . ./generate.sh to generate the latest version of the model.

Development

Activate virtual environment:

python -m venv venv
source venv/bin/activate

Build:

python3 -m pip install --upgrade build
python3 -m build

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

ctes_models_py-0.0.4.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

ctes_models_py-0.0.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file ctes_models_py-0.0.4.tar.gz.

File metadata

  • Download URL: ctes_models_py-0.0.4.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ctes_models_py-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d868b952a0d276258e4568b7d13201b36c58b9d5a264a7c0f3fb996c7636a384
MD5 608b184134f695c0078f04a88e481f85
BLAKE2b-256 7e6f8e5f341e62431cc1c204d798cc92f8eaefde06148275622ff1381229a772

See more details on using hashes here.

Provenance

The following attestation bundles were made for ctes_models_py-0.0.4.tar.gz:

Publisher: publish-to-pip.yml on irebased/ctes-models-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ctes_models_py-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: ctes_models_py-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ctes_models_py-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8b16410ae7d04f4165e83345b92a667a3293558a748b71a18d20eef7069da216
MD5 bc41369d20799e9e2ab758f38a95155c
BLAKE2b-256 fbec48b3c39bf23ab710d89f203e5961baa0d9b9106da4ba32768a1c84c4304a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ctes_models_py-0.0.4-py3-none-any.whl:

Publisher: publish-to-pip.yml on irebased/ctes-models-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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