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

Implementation of Base64 encoding and decoding. More...

Inheritance diagram for Base64Cipher:
Inheritance graph
Collaboration diagram for Base64Cipher:
Collaboration graph

Public Member Functions

 constructor ()
 Constructor for Base64 encoder/decoder.
 

Data Fields

readonly CipherName = "Base64"
 Identifier name for this encoding scheme.
 
- 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 Base64 encoding and decoding.

Base64 uses 64 ASCII characters (A-Z, a-z, 0-9, +, /) to represent binary data. Each character represents 6 bits, and padding with '=' characters ensures the output length is a multiple of 4.

Definition at line 21 of file base64.ts.

Member Function Documentation

◆ constructor()

Base64Cipher::constructor ( )
inline

Constructor for Base64 encoder/decoder.

Initializes the Base64 cipher implementation using Node.js built-in Buffer functionality for reliable encoding/decoding.

Definition at line 32 of file base64.ts.

Field Documentation

◆ CipherName

readonly Base64Cipher::CipherName = "Base64"

Identifier name for this encoding scheme.

Definition at line 25 of file base64.ts.


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