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

Abstract base class providing common functionality for cipher implementations. More...

Inheritance diagram for BaseCipher:
Inheritance graph
Collaboration diagram for BaseCipher:
Collaboration graph

Data Fields

abstract abstract encode(plaintext:string, key?:any) abstract decode(ciphertext:string, key?:any) readonly CipherName: string
 Abstract method to encode plaintext.
 

Static Public Attributes

static readonly ALPHABET: string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 Standard English alphabet for cipher operations.
 

Detailed Description

Abstract base class providing common functionality for cipher implementations.

This class implements the CipherI interface and provides utility methods commonly used across different cipher types. All concrete cipher classes should extend this base class to inherit shared functionality.

Definition at line 18 of file baseCipher.ts.

Field Documentation

◆ ALPHABET

readonly BaseCipher::ALPHABET
static

Standard English alphabet for cipher operations.

Used as reference for alphabetic substitution ciphers

Definition at line 44 of file baseCipher.ts.

◆ CipherName

abstract abstract encode (plaintext: string, key?: any) abstract decode (ciphertext: string, key?: any) readonly BaseCipher::CipherName

Abstract method to encode plaintext.

Parameters
plaintextThe text to encode
keyOptional key parameter (implementation specific)
Returns
The encoded text

Abstract method to decode ciphertext

Parameters
ciphertextThe text to decode
keyOptional key parameter (implementation specific)
Returns
The decoded text

Abstract property defining the cipher's name

Definition at line 38 of file baseCipher.ts.


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