32 private alphabet: string;
39 private table: Record<string, string>;
52 for (
const ch of this.alphabet) {
66 encode(plainText:
string =
""): string {
69 return morse.encode(plainText);
80 decode(cipherText:
string =
""):
string {
82 return morse.decode(cipherText);
Abstract base class providing common functionality for cipher implementations.
static readonly ALPHABET
Standard English alphabet for cipher operations.
Simplified implementation of the Fractionated Morse cipher.
readonly CipherName
Identifier name for this cipher.
constructor()
Constructor for Fractionated Morse cipher.
Implementation of Morse code encoding and decoding.
export const Record< string,(...args:any[])=> string