This repository contains an implementation of the Advanced Encryption Standard (AES) written in TypeScript.
It includes both the core AES components (S-box, key expansion, encryption/decryption) and Square Attack.
index.ts– Entry point and high-level AES logic.Sbox.ts– AES S-box and inverse S-box tables.helpers.ts– Utility functions (byte/word transformations, etc.).client.ts– Example usage / test client.attackRelated.ts– Code related to cryptanalysis (e.g., square attack).
-
Clone the repository
git clone https://github.com/I-Kazanci/AES-4-Round-Attack.git cd AES-4-Round-Attack -
Install dependencies
npm install
-
Run the project
npx ts-node index.ts
- AES core implementation in TypeScript.
- S-box & inverse S-box lookup tables.
- Helper functions for Galois Field arithmetic.
- Example client code for testing.
- Fully functional Square Attack on Round 4-AES.
MIT License – feel free to use, modify, and share.