How hdim2355/kriptografia works
This repository contains three cryptography exercises: classical cipher routines, configurable block encryption for files/data, and a networked peer-messaging exercise. The main user-to-result flow is lab2's driver passing bytes through Crypter for padding, mode selection, and encryption/decryption. The lab1 and lab3 capabilities are separate product branches. Relationships below are limited to the shown excerpts and SOURCE INDEX references; unsampled behavior is not inferred.
Main entry points: Crypter.py Crypter · client.py Messaging Client · crypto-console.py Cipher Console · crypto.py Classical Ciphers
Components 24
Classical Ciphers
- Cipher Console
lab1/assign1/crypto-console.py - Classical Ciphers
lab1/assign1/crypto.py - Cipher Utilities
lab1/assign1/utils.py - Caesar Program
lab1/cezar.py
Block Encryption
- File Encryption Driver
lab2/main.py - Crypter
lab2/Crypter.py - Padding
lab2/Padding.py - AES Cipher
lab2/AES.py - Custom Cipher
lab2/OwnAlg.py - ECB Mode
lab2/methods/ECB.py - CBC Mode
lab2/methods/CBC.py - CFB Mode
lab2/methods/CFB.py - OFB Mode
lab2/methods/OFB.py - CTR Mode
lab2/methods/CTR.py
Secure Messaging
- Messaging Client
lab3/client.py - Message Sender
lab3/MessageSender.py - Message Receiver
lab3/MessageReceiver.py - Messaging Crypter
lab3/Crypter.py - Messaging AES
lab3/AES.py - Messaging Custom Cipher
lab3/OwnAlg.py - Messaging Padding
lab3/Padding.py - Key Server
lab3/keyserver.py
Other components
- User
- Peer Client
Connections 20
- User → Cipher Console: runs
lab1/assign1/crypto-console.py - Cipher Console → Classical Ciphers: calls
lab1/assign1/crypto-console.py - Classical Ciphers → Cipher Utilities: uses
lab1/assign1/crypto.py - User → Caesar Program: runs
- User → File Encryption Driver: runs
lab2/main.py - File Encryption Driver → Crypter: encrypts data
lab2/main.py - Crypter → Padding: pads data
lab2/Crypter.py - Crypter → AES Cipher: dispatches AES
lab2/Crypter.py - Crypter → Custom Cipher: dispatches custom
lab2/Crypter.py - Crypter → ECB Mode: selects mode
lab2/Crypter.py - Crypter → CBC Mode: selects mode
lab2/Crypter.py - Crypter → CFB Mode: selects mode
lab2/Crypter.py - Crypter → OFB Mode: selects mode
lab2/Crypter.py - Crypter → CTR Mode: selects mode
lab2/Crypter.py - User → Messaging Client: starts client
- Messaging Client → Message Sender: delegates sending
lab3/client.py - Messaging Client → Message Receiver: delegates receiving
lab3/client.py - Messaging Client → Crypter: uses encryption
lab3/client.py - Messaging Client → Key Server: requests keys
lab3/client.py - Messaging Client → Peer Client: exchanges messages
lab3/client.py