Skip to content

AyeshaNasirWebDeveloper/Secure-Data-Encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Secure Data Encryption with Streamlit

This is a simple yet powerful Streamlit web application that allows users to securely encrypt and decrypt personal data like name, email, and message using the Fernet symmetric encryption method from the cryptography library.

πŸš€ Features

  • πŸ” Encrypt user data with a custom passkey.
  • πŸ“¦ Save encrypted data locally.
  • πŸ”“ Decrypt and retrieve data securely using the same passkey.
  • πŸ”’ Prevents unauthorized access (invalid key = no data).
  • 🌐 Beautiful and interactive UI using Streamlit.

πŸ“‚ Project Structure

secure-data-encryption/ β”‚ β”œβ”€β”€ secure_data_encryption.py # Main Streamlit app β”œβ”€β”€ data.json # Stores encrypted data β”œβ”€β”€ requirements.txt # Dependencies └── README.md # Project documentation └── key.key # For keys storage └── .gitignore # Ignoring the data

πŸ› οΈ Installation

To run this project locally, follow these steps:

  1. Clone the Repository
git clone https://github.com/AyeshaNasirWebDeveloper/Secure-Data-Encryption
  1. Install Dependencies
pip install -r requirements.txt
  1. Run the App
streamlit run secure_data_encryption.py

🌐 Hosting on Streamlit Cloud

To host this app on Streamlit Cloud, make sure you:

  • Push all project files to a GitHub repo.
  • Include requirements.txt with:

streamlit cryptography

πŸ”‘ Usage Guide

  1. Navigate to 🏠 Home to understand the app.
  2. Go to πŸ” Encrypt to enter and encrypt your data.
  3. Visit πŸ”“ Decrypt (or πŸ“‚ Retrieve Your Data) to decrypt and view saved data using your passkey.

⚠️ Security Note

This is a basic educational encryption app. For real-world use:

  • Use secure backends like PostgreSQL or Firebase.
  • Avoid saving sensitive data in plain JSON files.

πŸ™Œ Acknowledgments

Built with ❀️ using:

Thank You for Your Time

About

You can see here

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages