Ciphertext Ecosystem models.
npm install ctes-models-tsThis dependency defines the models for the ciphertext ecosystem, used for building tools that will help solve unsolved ciphers.
First, install the package with npm install ctes-models-ts.
Example usage of the models:
``ts
import { Ciphertext, CiphertextMetadata, Encoding, EncodingMetadata } from "ctes-models-ts";
const myBytes: Uint8Array = Buffer.from("aa bc de ff", 'hex');
const encoding: EncodingMetadata = {
encoding: Encoding.BASE_CONVERSION,
base: 16
}
const myCiphertextMetadata: CiphertextMetadata = {
type: "",
encoding: encoding
}
const myCiphertext: Ciphertext = {
bytes: myBytes,
metadata: myCiphertextMetadata
}
`
Requires installing the Protoc CLI.
Run npm install then npm run generate` to generate the latest version of the model.