|
Asper Header
1.0.14
The header injector extension
|
Implementation of the Beaufort reciprocal polyalphabetic cipher. More...


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. | |
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.
|
inline |
Constructor for Beaufort cipher.
Initializes the cipher. The key is provided during encode/decode operations.
Definition at line 31 of file beaufort.ts.
| readonly BeaufortCipher::CipherName = "Beaufort" |
Identifier name for this cipher.
Definition at line 25 of file beaufort.ts.