ENCRYPTED FILE TRANSFER SYSTEM
Submitted by: [Your Full Name]
Course: [Your Course Name]
College: [Your College Name]
Project Type: Cybersecurity Mini Project
Table of Contents
1. Introduction
2. Objectives
3. Tools and Technologies Used
4. Project Description
- Encryption Logic
- File Transfer Process
5. Implementation Steps
6. Code Explanation
7. Output Screenshots
8. Conclusion
9. References
1. Introduction
This project focuses on developing a secure file transfer application using Python. The
application uses encryption techniques to ensure that the data transferred between systems
remains confidential and unaltered.
2. Objectives
- To protect the confidentiality and integrity of files during transfer.
- To apply symmetric encryption using Fernet.
- To demonstrate basic networking using Python’s socket programming.
- To understand and implement real-world cybersecurity practices.
3. Tools and Technologies Used
Tool Purpose
Python Programming language
VS Code Code editor
Cryptography lib Encryption (Fernet)
Socket module Network file transfer
Kali Linux / Windows Operating System
4. Project Description
Encryption Logic:
The file is encrypted using Fernet symmetric encryption from the `cryptography` module in
Python. A key is generated and used both for encryption and decryption.
File Transfer Process:
The sender encrypts a file and sends it over the network using a socket. The receiver
receives the encrypted file and decrypts it using the shared secret key.
5. Implementation Steps
Step 1: Install Python and Tools
- Installed Python 3.12 from the official website
- Installed `cryptography` using: pip install cryptography
Step 2: Created secret.txt
- File content: “This is a confidential file.”
Step 3: Sender Program
- Reads secret.txt, encrypts it and sends via socket to receiver
Step 4: Receiver Program
- Waits for incoming connection, decrypts data and saves as received_file.txt
6. Code Explanation
sender.py Highlights:
- Generates key and saves to secret.key
- Reads the file to encrypt
- Uses Fernet to encrypt content
- Sends encrypted content to receiver
receiver.py Highlights:
- Loads the encryption key
- Listens for connections
- Receives encrypted content
- Decrypts and stores file as received_file.txt
7. Output Screenshots
✅ Screenshot Ideas:
- Terminal showing `python sender.py` and `File sent successfully`
- Terminal showing `python receiver.py` and `File received and decrypted`
- Contents of `secret.txt` and `received_file.txt`
- Your code in VS Code editor
- Folder structure showing `secret.key`, `secret.txt`, and `received_file.txt`
8. Conclusion
This project successfully demonstrates how secure file transfer can be achieved using
Python. With basic socket programming and encryption, we ensured that data remains
private and tamper-proof during transmission.
9. References
Python Cryptography Library: https://cryptography.io/en/latest/
Python Sockets: https://docs.python.org/3/library/socket.html
Kali Linux Tools: https://www.kali.org/tools/