45 encode(plaintext:
string, key:
string):
string {
49 const sanitized = this.sanitize(plaintext);
50 const transposed =
columnar.encode(sanitized, key);
51 return vigenere.encode(transposed, key);
62 decode(ciphertext:
string, key:
string):
string {
66 const intermediate =
vigenere.decode(ciphertext, key);
67 return columnar.decode(intermediate, key);
Abstract base class providing common functionality for cipher implementations.
Implementation of the Columnar Transposition cipher.
Simplified implementation of the VIC (Soviet spy) cipher.
readonly CipherName
Identifier name for this cipher.
constructor()
Constructor for simplified VIC cipher.
Implementation of the Vigenère polyalphabetic substitution cipher.
export const export const string[]
ColumnarCipher from columnar
VigenereCipher from vigenere