How uzukhai/python-aes-encryption works
This is a small, pure-Python AES-128 block-encryption demonstration. A user runs the script with its fixed 16-character plaintext and key; the script converts them to state matrices, applies the initial key XOR and ten AES rounds, then formats and prints hexadecimal and Base64 results. Key expansion is implemented inside the AddRoundKey module. The README documents the single-block, ECB-style behavior and major AES stages; the graph follows calls visible in the excerpted script and does not imply calls between transformation modules.
Main entry points: AES.py AES runner · SubBytes.py SubBytes · ShiftRow.py ShiftRows · MixColumns.py MixColumns
Components 9
Encryption driver
- AES runner
AES.py - Printed result
AES.py
AES transformations
- SubBytes
SubBytes.py - ShiftRows
ShiftRow.py - MixColumns
MixColumns.py - Key schedule and XOR
AddRoundKey.py
Input and output
- Text conversion
HexTransform.py - Hex and Base64
ConvertText.py
Other components
- User
Connections 8
- User → AES runner: runs script
README.md - AES runner → Text conversion: converts text and key
AES.py - AES runner → Key schedule and XOR: applies round key
AES.py - AES runner → SubBytes: substitutes bytes
AES.py - AES runner → ShiftRows: shifts rows
AES.py - AES runner → MixColumns: mixes columns
AES.py - AES runner → Hex and Base64: formats state
AES.py - AES runner → Printed result: prints result
AES.py