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

Implementation of the Columnar Transposition cipher. More...

Inheritance diagram for ColumnarCipher:
Inheritance graph
Collaboration diagram for ColumnarCipher:
Collaboration graph

Public Member Functions

 constructor ()
 Constructor for Columnar Transposition cipher.
 

Data Fields

readonly CipherName = "Columnar"
 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 Columnar Transposition cipher.

Arranges plaintext in a rectangular grid based on key length, then reads columns in the order determined by sorting the key. This provides a transposition-based encryption method.

Definition at line 21 of file columnar.ts.

Member Function Documentation

◆ constructor()

ColumnarCipher::constructor ( )
inline

Constructor for Columnar Transposition cipher.

Initializes the cipher. The key is provided during encode/decode operations.

Definition at line 31 of file columnar.ts.

Field Documentation

◆ CipherName

readonly ColumnarCipher::CipherName = "Columnar"

Identifier name for this cipher.

Definition at line 25 of file columnar.ts.


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