Skip to content

Priyanka959/encryption-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Encrypted Clipboard

A secure web application for sharing encrypted text messages. Users can encrypt text with a password and share the generated ID. Recipients can decrypt the message using the ID and password.

Features

  • Secure Text Sharing: Encrypt messages with password-based encryption
  • Simple Interface: Clean, easy-to-use web interface
  • No Persistence: Data stored in memory only, cleared on server restart
  • Client-side Encryption: Text is encrypted before transmission
  • Password Protection: Messages can only be decrypted with the correct password

Tech Stack

  • Backend:

    • Python 3.x
    • Flask (Web Framework)
    • cryptography (Encryption Library)
  • Frontend:

    • HTML5
    • CSS3
    • Vanilla JavaScript

Installation

  1. Clone the repository:

    git clone https://github.com/Priyanka959/encryption-tool.git
    cd encryption-tool
  2. Create a virtual environment and activate it:

    python -m venv .venv
    # On Windows:
    .venv\Scripts\activate
    # On Unix/MacOS:
    source .venv/bin/activate
  3. Install dependencies:

    pip install -r encrypted_clipboard/requirements.txt

Running the Application

  1. Start the Flask server:

    # From the project root:
    python -m encrypted_clipboard.backend.app
  2. Open your browser and navigate to:

    http://localhost:5000
    

Usage

Sending a Message

  1. Enter your text in the "Text to Send" field
  2. Enter a secure password
  3. Click "Send"
  4. Copy the generated Clipboard ID

Receiving a Message

  1. Enter the Clipboard ID
  2. Enter the password
  3. Click "Receive"
  4. The decrypted message will be displayed

Security Notes

  • Messages are encrypted using Fernet (symmetric encryption)
  • Passwords are used to derive encryption keys
  • Data is stored in memory only and cleared when the server restarts
  • Use strong, unique passwords for each message
  • The server never stores the original password
  • Messages are encrypted before transmission

Development

The project structure:

encrypted_clipboard/
├── README.md
├── requirements.txt
├── backend/
│   ├── app.py          # Flask application
│   ├── crypto_utils.py # Encryption utilities
│   └── storage.py      # In-memory storage
└── frontend/
    ├── index.html
    ├── script.js
    └── style.css

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is open source and available under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages