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

Implementation of the ancient Scytale transposition cipher. More...

Inheritance diagram for ScytaleCipher:
Inheritance graph
Collaboration diagram for ScytaleCipher:
Collaboration graph

Public Member Functions

 constructor ()
 Constructor for Scytale cipher.
 

Data Fields

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

Simulates wrapping text around a cylindrical rod by arranging characters in a grid format, then reading them in a different order to create the transposition effect.

Definition at line 21 of file scytale.ts.

Member Function Documentation

◆ constructor()

ScytaleCipher::constructor ( )
inline

Constructor for Scytale cipher.

Initializes the cipher. The rod diameter is specified during encode/decode operations.

Definition at line 31 of file scytale.ts.

Field Documentation

◆ CipherName

readonly ScytaleCipher::CipherName = "Scytale"

Identifier name for this cipher.

Definition at line 25 of file scytale.ts.


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