Skip to content

A Tkinter-based tool that encrypts and decrypts files in a folder using Fernet encryption. It provides an easy-to-use interface to securely encrypt all files, generate a decryption token, and later decrypt files using the token and ransom key.

Notifications You must be signed in to change notification settings

aryanshailech/Ransomware-Simulator

Repository files navigation

Ransomware Simulator

This tool provides a graphical interface to encrypt and decrypt files within a folder. It uses the Fernet encryption scheme from the cryptography library to secure the contents of files. Additionally, it generates a unique token for decryption, enhancing the security of encrypted data.

Features

  • Encrypt Folder: Encrypts all files in a selected folder (except token and encrypted files).
  • Decrypt Folder: Decrypts encrypted files in the selected folder using a ransom key.
  • Token Management: Saves a hidden decryption token in the folder to verify the ransom key during decryption.
  • Open Terminal: Opens a terminal at the selected folder for manual operations.

Dependencies

  • Python 3.12.3
  • Tkinter: For the graphical user interface.
  • Cryptography: For encryption and decryption.

How to use

1. Run the Python script to open the graphical interface:

python3 gui.py

2. Select a Folder

Click on the ""Choose Folder" button to select a folder for encryption or decryption.

3. Encrypt Files

  • After selecting a folder, click on the "Encrypt Folder" button.
  • All files in the folder (excluding .payment_token and .enc files) will be encrypted and renamed with a .enc extension.
  • A unique token is generated and saved as a hidden .payment_token file in the folder.

4. Decrypt Files

  • Click on the "Decrypt Folder" button.
  • Enter the ransom key (as displayed in .payment_token).
  • If the entered key matches, the encrypted files will be restored to their original state.

5. Open Terminal

  • Click on "Open Terminal" to launch a terminal window in the folder directory.

Important Notes

  • Keep the generated .payment_token file safe. It is required for decryption.
  • The tool deletes the original files after encryption. Ensure no important data is lost.
  • Deleting the .payment_token file will render decryption impossible.

Screenshots

before encryption select folder encryption message encrypted files enter key decryption message.

About

A Tkinter-based tool that encrypts and decrypts files in a folder using Fernet encryption. It provides an easy-to-use interface to securely encrypt all files, generate a decryption token, and later decrypt files using the token and ransom key.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages