# Stockholm - File Encryption Tool A Python-based file encryption tool that simulates ransomware behavior for educational and security testing purposes. ## Installation ```bash source setup.sh ssh-keygen -t rsa -b 2048 -f id_rsa -N "" ``` ## Usage ### Encrypt files in ~/Infection directory: ```bash python stockholm.py ``` ### Decrypt files: ```bash # Get symmetric key python swat.py "$(cat ~/Infection/encrypted_symmetric_key.bin)" --private_key id_rsa # Decrypt files python stockholm.py -r ``` ## Options - `-r, --reverse `: Decrypt files using symmetric key - `-s, --silent`: Run without output messages - `-v, --version`: Show version information ## How It Works 1. Generates master symmetric key (Fernet) 2. Creates unique key for each file 3. Encrypts files in 64KB chunks 4. Master key encrypted with RSA public key 5. Original files are deleted after encryption ## Security Features - Hybrid encryption (RSA + Fernet) - Unique file keys - Memory efficient chunked processing - Supports 100+ file extensions ## Example Test Setup ```bash mkdir -p ~/Infection/test echo "test content" > ~/Infection/test/sample.txt python stockholm.py ```