Skip to main content

A library for Ciphertext Ecosystem models.

Project description

Ciphertext Ecosystem Python Models

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

The model is a generated model using Protobuf.

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.1.0.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.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ctes_models_py-0.1.0.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.1.0.tar.gz
Algorithm Hash digest
SHA256 cc386f9401a56b964e72936c7673094d630cd5211f563e15b7b14220d6b6129e
MD5 629ad57b655d98b3568e490f3e8786b6
BLAKE2b-256 e2e45caa064b8e088cf9cf704e1b5c29df63d5a406b4f082c8bd0e51928f83f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for ctes_models_py-0.1.0.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: ctes_models_py-0.1.0-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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 109fc5d95010c4c965cc8e4b2bb8d1124c4be44609bfc1dc263294f7543a62f4
MD5 c81d7a0db15db502ffd014ac321c3c2b
BLAKE2b-256 2ff116585d9fa826094145f26bcd85fe3c62026f7145e7cc6b786cf15ef5cade

See more details on using hashes here.

Provenance

The following attestation bundles were made for ctes_models_py-0.1.0-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