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

Implementation of the Route transposition cipher. More...

Inheritance diagram for RouteCipher:
Inheritance graph
Collaboration diagram for RouteCipher:
Collaboration graph

Public Member Functions

 constructor ()
 Constructor for Route cipher.
 

Data Fields

readonly CipherName = "Route"
 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 Route transposition cipher.

Arranges plaintext in a rectangular grid, then reads it following a predetermined spiral route to create the ciphertext. The route pattern determines the specific transposition applied.

Definition at line 21 of file route.ts.

Member Function Documentation

◆ constructor()

RouteCipher::constructor ( )
inline

Constructor for Route cipher.

Initializes the cipher. Grid dimensions are specified during encode/decode operations.

Definition at line 31 of file route.ts.

Field Documentation

◆ CipherName

readonly RouteCipher::CipherName = "Route"

Identifier name for this cipher.

Definition at line 25 of file route.ts.


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