A Streamlit-based app to securely encrypt, store, and retrieve data using user-defined passkeys. It uses Fernet encryption, SHA-256 hashing, and JSON-based storage.
- Encrypt and save sensitive data locally
- Decrypt data using the correct passkey
- Secure passkey hashing (SHA-256)
- Master password protection
- Tracks failed attempts and locks after 3 failures
- Clean and user-friendly Streamlit UI
- Python
- Streamlit
- cryptography (Fernet)
- hashlib
- JSON
- os module
secret key— stores the generated Fernet keydata.json— encrypted data + hashed passkeysmaster_password— stores master password (read and hashed at runtime)
- Clone this repo
- Install dependencies:
pip install streamlit cryptography
Create a master_password file with your password.
Run the app:
bash Copy Edit streamlit run your_script.py ✅ Usage Store Data: Enter your data + a passkey → data gets encrypted and saved.
Retrieve Data: Provide encrypted text + correct passkey → view decrypted data.
After 3 wrong attempts, login with the master password to continue.