Skip to content

ashaniwale-codestack/encrypt-decrypt-zip-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🔐 EncryptDecryptZip

A Windows-based utility built using C# (.NET WinForms) to securely encrypt and decrypt ZIP/files using cryptographic algorithms.


🚀 Overview

EncryptDecryptZip is a desktop application that allows users to:

  • 🔒 Encrypt files using a secure password
  • 🔓 Decrypt encrypted files back to original format
  • 📂 Select files via a simple UI
  • 🛡️ Protect sensitive data using cryptographic techniques

🧠 How It Works

The application uses symmetric encryption (AES) to secure file contents:

🔐 Encryption Flow

Input File → Read Bytes → Encrypt using Password → Save Encrypted File

🔓 Decryption Flow

Encrypted File → Read Bytes → Decrypt using Password → Restore Original File

👉 Internally, cryptographic APIs from .NET (e.g., AES/Rijndael) are used to transform file data securely ([GitHub][1])


🧩 Features

  • 🖥️ Simple Windows Forms UI
  • 🔐 Password-based encryption & decryption
  • 📁 File selection via dialog
  • ⚡ Fast processing of files
  • 🛡️ Uses strong cryptographic standards (AES)

🛠️ Tech Stack

  • Language: C#
  • Framework: .NET (WinForms)
  • Cryptography: System.Security.Cryptography
  • File Handling: System.IO

📁 Project Structure

EncryptDecryptZip/
│
├── EncryptDecryptZip/
│   ├── Form1.cs        // Main UI & logic
│   ├── Program.cs
│   ├── App.config
│
└── README.md

🧪 Usage

1️⃣ Run Application

  • Open solution in Visual Studio
  • Run the project

2️⃣ Encrypt File

  • Select file
  • Enter password
  • Click Encrypt
  • Encrypted file will be generated

3️⃣ Decrypt File

  • Select encrypted file
  • Enter same password
  • Click Decrypt
  • Original file will be restored

⚠️ Security Notes

  • 🔑 Always remember your password — it cannot be recovered
  • ❌ Wrong password = corrupted output
  • 🔐 Do not use weak passwords
  • 📦 Share encrypted files securely

🚀 Future Improvements

  • 🔐 Support ZIP-specific encryption
  • 🖥️ Drag & drop UI
  • 📂 Batch file encryption
  • 🔑 Key management system
  • 🌐 Cloud storage integration

💡 Highlights

  • Practical implementation of cryptography in C#
  • Clean separation of UI and logic
  • Real-world utility tool for secure file handling

🙌 Contribution

Feel free to fork and contribute!

About

This tool is designed to encrypt and decrypt zip files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages