|
Asper Header
1.0.14
The header injector extension
|
Implementation of the Caesar substitution cipher. More...


Public Member Functions | |
| constructor (shift:number=3) | |
| Constructor for Caesar cipher. | |
Data Fields | |
| readonly | CipherName = "Caesar" |
| 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 Caesar substitution cipher.
A monoalphabetic substitution cipher where each letter in the plaintext is shifted a certain number of places down or up the alphabet. The shift amount is configurable (default is 3, as used by Julius Caesar).
|
inline |
| readonly CaesarCipher::CipherName = "Caesar" |