https://github.com/e-d-i-n-i/sha256-webapp
This web app demonstrates a custom SHA-256 hash function using Python, Flask, and a RESTful API for generating hashes.
https://github.com/e-d-i-n-i/sha256-webapp
api-rest crytpography flask python security web-development
Last synced: about 2 months ago
JSON representation
This web app demonstrates a custom SHA-256 hash function using Python, Flask, and a RESTful API for generating hashes.
- Host: GitHub
- URL: https://github.com/e-d-i-n-i/sha256-webapp
- Owner: e-d-i-n-i
- License: mit
- Created: 2024-09-04T07:09:50.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-08T12:08:36.000Z (almost 2 years ago)
- Last Synced: 2025-03-02T20:31:59.449Z (over 1 year ago)
- Topics: api-rest, crytpography, flask, python, security, web-development
- Language: Python
- Homepage:
- Size: 5.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SHA-256 From Scratch Web Application 🗝️
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.
## Features
- **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.
## Getting Started
### Prerequisites
- **Python 3.x**
- **Flask** (Install via `pip install flask`)
### Installation
1. Clone the repository:
```bash
git clone https://github.com/e-d-i-n-i/sha256-webapp.git
cd sha256-webapp
```
2. Set up a virtual environment and install dependencies:
```bash
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r requirements.txt
```
3. Run the Flask application:
```bash
python app.py
```
4. Open `index.html` in your browser to access the web interface.
## Usage
1. Enter a message in the input field.
2. Click "Generate SHA-256 Hash" to see the computed hash displayed below.
## Contributing
Contributions are welcome! Please fork this repository and submit a pull request with your changes.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.