Skip to content

Samiimasmoudii/Secure_File_storage_Facial_recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secure File Storage with Facial Recognition

A Flask web application that encrypts files before storage and handles user authentication.

Features

  • Upload and download files (automatically encrypted/decrypted)
  • User login/logout with password hashing
  • File management interface
  • Admin user management
  • Fernet encryption for stored files

Prerequisites

  • Python 3.8+
  • pip

Installation

  1. Clone and navigate to the project:

    git clone <repository-url>
    cd Secure_File_storage_Facial_recognition
  2. Create virtual environment:

    python -m venv venv
    venv\Scripts\activate  # Windows
    source venv/bin/activate  # macOS/Linux
  3. Install dependencies:

    pip install -r requirements.txt
  4. Run the application:

    cd WebApp
    python main.py

Access at http://localhost:5000

Project Structure

WebApp/
├── main.py              # Entry point
├── website/
│   ├── __init__.py     # Flask app
│   ├── auth.py         # Authentication
│   ├── views.py        # Routes
│   ├── models.py       # Database models
│   └── templates/      # HTML files
└── instance/
    ├── database.db     # SQLite database
    ├── key.txt        # Encryption key
    └── uploads/       # Encrypted files

Usage

  1. Sign up with email and password
  2. Login to access the file drive
  3. Upload files (encrypted automatically)
  4. Download files (decrypted automatically)
  5. Admins can manage users

Notes

  • Files are encrypted with Fernet before storage
  • Passwords are hashed with PBKDF2-SHA256
  • Database and encryption key created automatically
  • Backup instance/key.txt - losing it makes files unrecoverable

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors