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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc386f9401a56b964e72936c7673094d630cd5211f563e15b7b14220d6b6129e
|
|
| MD5 |
629ad57b655d98b3568e490f3e8786b6
|
|
| BLAKE2b-256 |
e2e45caa064b8e088cf9cf704e1b5c29df63d5a406b4f082c8bd0e51928f83f6
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ctes_models_py-0.1.0.tar.gz -
Subject digest:
cc386f9401a56b964e72936c7673094d630cd5211f563e15b7b14220d6b6129e - Sigstore transparency entry: 835809484
- Sigstore integration time:
-
Permalink:
irebased/ctes-models-py@41eee2690d65f2c39187a7588525c62ab293391e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/irebased
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pip.yml@41eee2690d65f2c39187a7588525c62ab293391e -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
109fc5d95010c4c965cc8e4b2bb8d1124c4be44609bfc1dc263294f7543a62f4
|
|
| MD5 |
c81d7a0db15db502ffd014ac321c3c2b
|
|
| BLAKE2b-256 |
2ff116585d9fa826094145f26bcd85fe3c62026f7145e7cc6b786cf15ef5cade
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ctes_models_py-0.1.0-py3-none-any.whl -
Subject digest:
109fc5d95010c4c965cc8e4b2bb8d1124c4be44609bfc1dc263294f7543a62f4 - Sigstore transparency entry: 835809486
- Sigstore integration time:
-
Permalink:
irebased/ctes-models-py@41eee2690d65f2c39187a7588525c62ab293391e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/irebased
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pip.yml@41eee2690d65f2c39187a7588525c62ab293391e -
Trigger Event:
push
-
Statement type: