Asper Header  1.0.14
The header injector extension
Loading...
Searching...
No Matches
affine.ts File Reference

Implementation of the Affine cipher. More...

Go to the source code of this file.

Data Structures

class  AffineCipher
 Implementation of the Affine substitution cipher. More...
 

Variables

 import { BaseCipher } from "../base/baseCipher"
 

Detailed Description

Implementation of the Affine cipher.

The Affine cipher is a mathematical substitution cipher that uses the formula E(x) = (ax + b) mod 26 for encryption and D(x) = a^(-1)(x - b) mod 26 for decryption, where 'a' and 'b' are the cipher keys and 'a' must be coprime to 26.

Author
AsperGuide
Version
1.0.0
Date
2025

Definition in file affine.ts.

Variable Documentation

◆ import

import { BaseCipher } from "../base/baseCipher"

Definition at line 13 of file affine.ts.