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.
- π 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.
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
To run this project locally, follow these steps:
- Clone the Repository
git clone https://github.com/AyeshaNasirWebDeveloper/Secure-Data-Encryption
- Install Dependencies
pip install -r requirements.txt
- Run the App
streamlit run secure_data_encryption.py
To host this app on Streamlit Cloud, make sure you:
- Push all project files to a GitHub repo.
- Include
requirements.txt
with:
streamlit cryptography
-
Go to https://streamlit.io/cloud and deploy the app directly from your GitHub repo.
-
Try Now:
- Navigate to
π Home
to understand the app. - Go to
π Encrypt
to enter and encrypt your data. - Visit
π Decrypt
(orπ Retrieve Your Data
) to decrypt and view saved data using your passkey.
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.
Built with β€οΈ using: