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

Implementation of the Atbash substitution cipher. More...

Inheritance diagram for AtbashCipher:
Inheritance graph
Collaboration diagram for AtbashCipher:
Collaboration graph

Public Member Functions

 constructor ()
 Constructor for Atbash cipher.
 

Data Fields

readonly CipherName = "Atbash"
 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 Atbash substitution cipher.

Maps each letter to its corresponding position from the end of the alphabet. A becomes Z, B becomes Y, and so forth. This cipher is symmetric, meaning the same operation performs both encoding and decoding.

Definition at line 21 of file atBash.ts.

Member Function Documentation

◆ constructor()

AtbashCipher::constructor ( )
inline

Constructor for Atbash cipher.

Builds the character mapping table where each letter maps to its counterpart from the reversed alphabet (A→Z, B→Y, C→X, etc.)

Definition at line 38 of file atBash.ts.

Field Documentation

◆ CipherName

readonly AtbashCipher::CipherName = "Atbash"

Identifier name for this cipher.

Definition at line 25 of file atBash.ts.


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