SecureDataTransfer 1.0
User-friendly Python GUI for seamless and secure file encryption and transfer, enhancing data privacy.
License: Apache-2.0
Requires Python: >=3.12,<4.0
Keywords: python,AES,RSA,encryption,file-transfer,data-privacy

<!-- Title Section -->
<h1 align="center">Secure Data Transfer Device 🛡️</h1>

<p align="center">
  <strong>A Raspberry Pi-based solution for secure and user-friendly data encryption and transfer.</strong>
</p>

<!-- Image Section -->
<p align="center">
  <img src="https://i.ibb.co/FKk2kQN/19f17e75-14ef-459a-a15d-481419ea99af-2023-10-03-07-40-05.jpg" alt="Secure Data Transfer Device">
</p>

<h2 align="left">Content Table 📑</h2>

<ul>
  <li><a href="#project-overview-">Project Overview</a>
    <ul>
      <li><a href="#software-components-">Software Components</a></li>
      <li><a href="#hardware-components-">Hardware Components</a></li>
    </ul>
  </li>
  <li><a href="#usage-">Usage</a>
    <ul>
      <li><a href="#auto-start">Auto-Start</a></li>
      <li><a href="#encrypting-files">Encrypting Files</a></li>
      <li><a href="#decrypting-files">Decrypting Files</a></li>
      <li><a href="#hardware-integration-">Hardware Integration</a></li>
      <li><a href="#alternative-usage-">Alternative Usage</a></li>
    </ul>
  </li>
  <li><a href="#user-documentation-">User Documentation</a></li>
  <li><a href="#testing-and-feedback-">Testing and Feedback</a></li>
  <li><a href="#dependencies-%EF%B8%8F">Dependencies</a></li>
  <li><a href="#license-">License</a></li>
  <li><a href="#contributions-">Contributions</a></li>
</ul>

<!-- Project Description -->
<h2 align="center" id="project-overview">Project Overview 🚀</h2>

<p align="center">
  <em>Protecting Sensitive Data Made Simple.</em>
</p>

The **Secure Data Transfer Device** seamlessly combines hardware and software components to create a robust solution for safeguarding and sharing sensitive information.

<!-- Components Section -->
<h2 align="center">📦 Software & Hardware Components</h2>

<p align="center">
  <em>Explore the Core Components 🧩</strong>
</p>

<p align="center">
  <a href="#software-components">Software Components</a> |
  <a href="#hardware-components">Hardware Components</a>
</p>

<!-- Software Components Section -->
<h4 align="left" id="software-components">Software Components 📂</h4>

- **`main.py`**: The intuitive graphical interface, allowing you to encrypt or decrypt files effortlessly.

- **`encryption/symmetric.py`**: Handles symmetric encryption, perfect for secure group sharing using the AES algorithm.

- **`encryption/asymmetric.py`**: Employs RSA encryption with public keys for individual sharing, ensuring data security.

- **`decryption/symmetric.py`**: Handles symmetric decryption, allowing the user to decrypt files that were encrypted using the AES algorithm.

- **`decryption/asymmetric.py`**: Employs RSA decryption with private keys, enabling the user to decrypt files that were encrypted using the RSA algorithm.

- **`decryption_gui.py`**: The graphical interface for decrypting files.

- **`encryption_gui.py`**: The graphical interface for encrypting files.

- **`file_operations.py`**: Contains file operation functions for reading, writing, and manipulating file paths.

<!-- Hardware Components Section -->
<h4 align="left" id="hardware-components">Hardware Components 🧰</h4>

- **_Raspberry Pi:_** The invisible guardian between your computer and an external hard drive, fortifying data security.

- **_External Hard Drive:_** A secure vault for your encrypted files, ensuring data remains protected, even if the drive is misplaced.

<!-- Usage Section -->
<h2 align="center" id="usage">Usage 📋</h2>

<p align="center">
  <em>Your Data, Your Control.</em>
</p>

<p align="center">
  <a href="#auto-start">Auto-Start</a> |
  <a href="#encrypting-files">Encrypting Files</a> |
  <a href="#decrypting-files">Decrypting Files</a> |
  <a href="#hardware-integration">Hardware Integration</a> |
  <a href="#alternative-usage">Alternative Usage</a>
</p>

<h3 id="auto-start">Auto-Start</h3>

Connect the Raspberry Pi to your computer, and the `MainGUI.py` application will auto-launch, offering a seamless user experience.

<h3 id="encrypting-files">Encrypting Files</h3>

Secure your files for:

- **Group Sharing (Symmetric Encryption):** Select a file, pick the encryption method, and specify the destination directory on the connected hard drive.

- **Individual Sharing (Asymmetric Encryption):** Select a file, provide the recipient's public key, and choose the destination directory.

<h3 id="decrypting-files">Decrypting Files</h3>

To decrypt files:

- **Symmetric Encryption:** Enter the encryption key and choose the destination directory.

- **Asymmetric Encryption:** Pick your private key file and the destination directory.

<!-- Hardware Integration Section -->
<h2 align="center" id="hardware-integration">Hardware Integration 🔌</h2>

<p align="center">
  <em>Seamless, Yet Robust.</em>
</p>

<ol>
  <li>Connect the external hard drive to the Raspberry Pi.</li>
  <li>Power up the Raspberry Pi to recognize and auto-mount the hard drive upon connection.</li>
  <li>Connect the Raspberry Pi to the computer handle file encryption, decryption, and data transfer to/from the hard drive.</li>
</ol>

<h2 align="center" id="alternative-usage">Alternative Usage 📋</h2>

To use the Secure Data Transfer Software on another hardware, follow these steps:

<ol>
  <li>Upgrade pip to the latest version:</li>
</ol>

```bash
pip install --upgrade pip
```

<ol start="2">
  <li>Install the Secure Data Transfer package:</li>
</ol>

```bash
pip install securedatatransfer
```

<ol start="3">
  <li>Run the package.</li>
</ol>

```bash
secure-transfer
```

<!-- User Documentation Section -->
<h2 align="center" id="user-documentation">User Documentation 📖</h2>
<p align="center">
  <em>Guides, Tips, and Support.</em>
</p>
For comprehensive instructions on using the "Secure Data Transfer Device," please refer to the user documentation provided with the project. This documentation includes step-by-step guides, troubleshooting tips, and contact information for support.
<!-- Testing and Feedback Section -->
<h2 align="center" id="testing-and-feedback">Testing and Feedback 🧪</h2>
<p align="center">
  <em>We Value Your Input.</em>
</p>
The Secure Data Transfer Device project has undergone extensive testing to ensure both security and usability. However, user feedback is invaluable for further enhancements. Please feel free to provide feedback and report any issues in the project's repository.
<!-- Dependencies Section -->
<h2 align="center" id="dependencies">Dependencies 🛠️</h2>
<p align="center">
  <em>The Building Blocks.</em>
</p>
This project relies on the following dependencies:

- [Python](https://www.python.org/): The primary programming language used for scripting and development.

- [PyQt5](https://pypi.org/project/PyQt5/): A Python binding for the Qt application framework, used for creating the graphical user interface (GUI).

- [Crypto](https://pypi.org/project/pycryptodome/): A cryptographic library for Python, providing support for encryption and decryption operations.

- [Raspberry Pi OS](https://www.raspberrypi.org/software/): The operating system for the Raspberry Pi, which serves as the core hardware component.

Please ensure that these dependencies are installed and configured correctly to run the Secure Data Transfer Device.

```bash
pip install -r requirements.txt
```

<!-- License Section -->
<h2 align="center" id="license">License 📜</h2>
<p align="center">
  <em>Open Source and Free to Use.</em>
</p>
This project is open-source and released under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) - check the [License](LICENSE) file for more details.

<!-- Contributions Section -->
<h2 align="center" id="contributions">Contributions 🤝</h2>

<p align="center">
  <em>Join Us and Make a Difference.</em>
</p>

If you would like to contribute to this project, please review our [Contribution Guidelines](CONTRIBUTING.md) for detailed information on creating issues, suggesting new features, and submitting pull requests.

<!-- Made with Love Section -->
<h2 align="center" id="made-with-love">Made with ❤️</h2>

<p align="center">
  <em>This Project Was Crafted with Passion and Dedication.</em>
</p>

<p align="center">
  We poured our hearts and countless hours into creating the Secure Data Transfer Device. Our team of dedicated senior students and university researchers worked tirelessly to ensure that your data remains secure and your user experience is seamless.
</p>

<p align="center">
  We hope this project brings you value and simplifies the way you protect and share sensitive information. Your support and feedback mean the world to us.
</p>