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

Implementation of XOR (Exclusive OR) encryption/decryption. More...

Inheritance diagram for XORCipher:
Inheritance graph
Collaboration diagram for XORCipher:
Collaboration graph

Public Member Functions

 constructor ()
 Constructor for XOR cipher.
 

Data Fields

readonly CipherName = "XOR"
 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.
 

Detailed Description

Implementation of XOR (Exclusive OR) encryption/decryption.

Performs byte-wise XOR operations between input data and a repeating key. The same operation serves for both encryption and decryption due to the self-inverse property of XOR. Output is hex-encoded for safe text transport.

Definition at line 22 of file xor.ts.

Member Function Documentation

◆ constructor()

XORCipher::constructor ( )
inline

Constructor for XOR cipher.

Initializes the XOR cipher implementation. No additional configuration is required as all parameters are provided during encode/decode operations.

Definition at line 34 of file xor.ts.

Field Documentation

◆ CipherName

readonly XORCipher::CipherName = "XOR"

Identifier name for this cipher.

Definition at line 26 of file xor.ts.


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