-
Encryption Code Review
- Review the provided
encrypt_file.pyscript that encrypts a text file using AES encryption. - Understand how the script reads the content of
input.txt, pads the plaintext, and encrypts it with a specific key.
- Review the provided
-
Task Overview
- Your task is to create a decryption function to decrypt the
encrypted.txtfile that was encrypted using the provided encryption script. - Import necessary modules like AES decryption and padding functions.
- Your task is to create a decryption function to decrypt the
-
Decryption Function Structure
- Create a function that:
- Reads the encrypted file.
- Decrypts the content using the same key that was used for encryption.
- Removes padding from the decrypted plaintext.
- Writes the decrypted content to a new file.
- Create a function that:
-
Decryption Function Template
- Use the provided decryption function template as a reference to structure your decryption function.
- Ensure that the decryption logic matches the encryption process to successfully decrypt the file.
-
Decryption Process
- Execute your decryption function to decrypt the
encrypted.txtfile and reveal the hidden story about the mysterious hacker. - Verify that the decrypted content matches the original text to ensure a successful decryption process.
- Execute your decryption function to decrypt the
-
Task Completion
- Once you have successfully decrypted the file, reflect on the encryption and decryption processes.
- Consider how encryption techniques like AES can be used to secure data and the importance of key management in cryptography.
-
Enjoy the Journey
- Dive into the realm of encryption and decryption to uncover the secrets hidden within the encrypted file.
- Embrace the challenge of decrypting the story about the mysterious hacker and enjoy the learning experience.
WillVerdze/SEED_CYBER_SECURITY_INTERNS
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|