How vvarma8111/python-keylogger-with-aes-gcm-encryption works
This repository is a keyboard-capture and encrypted-log prototype. Its main workflow listens for keyboard events, normalizes and appends them to a plaintext log, then encrypts that log when Escape is released. A separate command-line path encrypts or decrypts files. The graph reflects the README and sampled source; it does not infer behavior from the checked-in log artifacts, and it omits unsampled implementation details.
Main entry points: aes_encrypt_decrypt.py Encrypt file · mainfile.py Event listener
Components 13
Keyboard capture
- Event listener
mainfile.py - Capture and format keys
mainfile.py - Escape shutdown
mainfile.py - Plaintext log
File encryption
- Encrypt file
aes_encrypt_decrypt.py - Decrypt file
aes_encrypt_decrypt.py - Derive password key
aes_encrypt_decrypt.py - Encrypted log
Command-line tools
- CLI dispatch
aes_encrypt_decrypt.py - Encrypted input file
- Decrypted output file
Other components
- Keyboard input
- CLI user
Connections 15
- Keyboard input → Event listener: emits events
mainfile.py - Event listener → Capture and format keys: press callback
mainfile.py - Event listener → Escape shutdown: release callback
mainfile.py - Capture and format keys → Plaintext log: appends keys
mainfile.py - Escape shutdown → Plaintext log: appends stop marker
mainfile.py - Escape shutdown → Encrypt file: calls on Escape
mainfile.py - Encrypt file → Plaintext log: reads input
aes_encrypt_decrypt.py - Encrypt file → Derive password key: derives password key
aes_encrypt_decrypt.py - Encrypt file → Encrypted log: writes ciphertext
aes_encrypt_decrypt.py - CLI user → CLI dispatch: supplies command
aes_encrypt_decrypt.py - CLI dispatch → Encrypt file: dispatches encrypt
aes_encrypt_decrypt.py - CLI dispatch → Decrypt file: dispatches decrypt
aes_encrypt_decrypt.py - Decrypt file → Encrypted input file: reads input
aes_encrypt_decrypt.py - Decrypt file → Derive password key: derives password key
aes_encrypt_decrypt.py - Decrypt file → Decrypted output file: writes plaintext
aes_encrypt_decrypt.py