DES & AES Encryption Project
DES & AES Encryption Project
1. **Introduction**:
- Your Name
2. **Overview**:
- **Slide 2: Objective**
- Explain the purpose of the application: to encrypt and decrypt text using DES and AES algorithms.
- Key sizes: 16 bytes (128 bits), 24 bytes (192 bits), 32 bytes (256 bits).
4. **Application Structure**:
- List the libraries used: `tkinter`, `messagebox` from `tkinter`, `DES`, `AES`, `pad`, `unpad`, and `base64` from
`Crypto`.
- Describe the steps: padding the plaintext, encrypting, base64 encoding, and vice versa for decryption.
7. **Error Handling**:
8. **Conclusion**:
9. **Q&A**:
**Your Name**
**Objective:**
- To create a Python application with a graphical user interface (GUI) for encrypting and decrypting text using
DES and AES algorithms.
**DES:**
**AES:**
**Application Overview:**
**Importing Libraries:**
```python
import tkinter as tk
import base64
```
**Functions:**
- **DES Encryption:**
```python
ciphertext = cipher.encrypt(padded_text)
return base64.b64encode(ciphertext).decode('utf-8')
```
- **AES Encryption:**
```python
ciphertext = cipher.encrypt(padded_text)
return base64.b64encode(ciphertext).decode('utf-8')
```
- **DES Decryption:**
```python
decoded_text = base64.b64decode(ciphertext)
return plaintext.decode('utf-8')
```
- **AES Decryption:**
```python
decoded_text = base64.b64decode(ciphertext)
return plaintext.decode('utf-8')
```
**GUI Layout:**
**Class Structure:**
**Steps:**
**Live Demo:**
**Error Handling:**
**Summary:**
- The application provides a user-friendly interface for DES and AES encryption/decryption.
**Questions:**
By following this structure, you can effectively present the code and functionality of your DES and AES
encryption/decryption application to your audience.