Asper Header  1.0.14
The header injector extension
Loading...
Searching...
No Matches
PolybiusCipher Class Reference

Implementation of the Polybius Square substitution cipher. More...

Inheritance diagram for PolybiusCipher:
Inheritance graph
Collaboration diagram for PolybiusCipher:
Collaboration graph

Public Member Functions

 constructor ()
 Constructor for Polybius Square cipher.
 

Data Fields

readonly CipherName = "Polybius"
 Identifier name for this cipher.
 
- Data Fields inherited from BaseCipher
abstract abstract encode(plaintext:string, key?:any) abstract decode(ciphertext:string, key?:any) readonly CipherName: string
 Abstract method to encode plaintext.
 

Additional Inherited Members

- Static Public Attributes inherited from BaseCipher
static readonly ALPHABET: string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 Standard English alphabet for cipher operations.
 

Detailed Description

Implementation of the Polybius Square substitution cipher.

Uses a 5×5 grid where each letter is represented by its row and column coordinates. The grid arrangement allows letters to be encoded as two-digit numbers, enabling transmission via limited signaling methods.

Definition at line 21 of file polybius.ts.

Member Function Documentation

◆ constructor()

PolybiusCipher::constructor ( )
inline

Constructor for Polybius Square cipher.

Builds the 5×5 grid mapping with letters A-Z (I and J share position). Creates both forward and inverse lookup tables for encoding/decoding.

Definition at line 42 of file polybius.ts.

Field Documentation

◆ CipherName

readonly PolybiusCipher::CipherName = "Polybius"

Identifier name for this cipher.

Definition at line 25 of file polybius.ts.


The documentation for this class was generated from the following file: