This project demonstrates the SHA-256 cryptographic hash function implemented from scratch in Python. The backend is built using Flask, and the frontend is created with HTML, CSS, and JavaScript.
- SHA-256 Implementation: The core of the project is a custom implementation of the SHA-256 algorithm in Python, without relying on any external libraries.
- Web Interface: A simple and intuitive web interface allows users to input a message and generate its SHA-256 hash.
- API-Driven: The web app uses a RESTful API to communicate with the backend, where the SHA-256 hash is computed.
- Easy Deployment: The application is easy to deploy on any server or cloud platform supporting Python and Flask.
- Python 3.x
- Flask (Install via
pip install flask
)
-
Clone the repository:
git clone https://github.com/e-d-i-n-i/sha256-webapp.git cd sha256-webapp
-
Set up a virtual environment and install dependencies:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` pip install -r requirements.txt
-
Run the Flask application:
python app.py
-
Open
index.html
in your browser to access the web interface.
- Enter a message in the input field.
- Click "Generate SHA-256 Hash" to see the computed hash displayed below.
Contributions are welcome! Please fork this repository and submit a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE file for details.