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

Implementation of the Beaufort reciprocal polyalphabetic cipher. More...

Inheritance diagram for BeaufortCipher:
Inheritance graph
Collaboration diagram for BeaufortCipher:
Collaboration graph

Public Member Functions

 constructor ()
 Constructor for Beaufort cipher.
 

Data Fields

readonly CipherName = "Beaufort"
 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 Beaufort reciprocal polyalphabetic cipher.

Uses the formula C = (K - P) mod 26 for encoding, where K is the key character position and P is the plaintext character position. The same operation serves for both encoding and decoding.

Definition at line 21 of file beaufort.ts.

Member Function Documentation

◆ constructor()

BeaufortCipher::constructor ( )
inline

Constructor for Beaufort cipher.

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

Definition at line 31 of file beaufort.ts.

Field Documentation

◆ CipherName

readonly BeaufortCipher::CipherName = "Beaufort"

Identifier name for this cipher.

Definition at line 25 of file beaufort.ts.


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