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

Implementation of the Trifid fractionating transposition cipher. More...

Inheritance diagram for TrifidCipher:
Inheritance graph
Collaboration diagram for TrifidCipher:
Collaboration graph

Public Member Functions

 constructor (period:number=5)
 Constructor for Trifid cipher.
 

Data Fields

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

Uses 3D coordinates (row, column, depth) and period-based grouping to create a more complex cipher than Bifid. Coordinates are rearranged in groups before being converted back to letters.

Definition at line 23 of file trifid.ts.

Member Function Documentation

◆ constructor()

TrifidCipher::constructor ( period:number = 5)
inline

Constructor for Trifid cipher.

Parameters
periodThe grouping period for coordinate transposition (default: 5)

Initializes the cipher with configurable period. Common historical value is 5.

Definition at line 40 of file trifid.ts.

Field Documentation

◆ CipherName

readonly TrifidCipher::CipherName = "Trifid"

Identifier name for this cipher.

Definition at line 27 of file trifid.ts.


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