Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

A secure Django-based web application for creating, storing, and verifying electronic cheques using blockchain principles and RSA encryption.

Notifications You must be signed in to change notification settings

SatyamPote/E-Cheque

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’³ E-Cheque System

🧾 Overview

This project implements a basic E-Cheque System using Django, Python, and cryptographic signatures.
It allows users to:

  • πŸ“ Issue e-cheques
  • πŸ”— View a blockchain of issued cheques
  • βœ… Verify the validity of cheques

The system utilizes RSA encryption for signing and verification.


πŸš€ Features

  • ✍️ Issue E-Cheques
  • 🧱 Blockchain of Cheques
  • πŸ•΅οΈ Verification System
  • βš™οΈ Django Admin Interface

πŸ› οΈ Technologies Used

  • Python
  • Django
  • PyCryptodome
  • SQLite

πŸ“₯ Installation

# Create and activate a virtual environment
python -m venv venv

# On Linux/macOS:
source venv/bin/activate

# On Windows:
venv\Scripts\activate

# Install required packages
pip install -r requirements.txt
# requirements.txt
Django
pycryptodome

πŸ”‘ Key Generation

# Navigate to the keys directory
cd keys

# Run key generation script
python generate_keys.py
# This creates:
# - private.pem (keep this secure)
# - public.pem (used for verifying signatures)

πŸ—ƒοΈ Database Setup

# Run migrations
python manage.py makemigrations cheques
python manage.py migrate

🚦 Running the Application

# Start development server
python manage.py runserver
# Access URLs:
# Admin Panel: http://127.0.0.1:8000/admin/
# Home Page:   http://127.0.0.1:8000/cheques/
# Create a Django superuser
python manage.py createsuperuser

🧾 Create a Cheque

1. Go to: http://127.0.0.1:8000/cheques/create_cheque/
2. Fill in:
   - Payee Name
   - Amount
   - Date
3. Submit to generate and sign a cheque.

πŸ”— View Blockchain

- Go to: http://127.0.0.1:8000/cheques/blockchain/
- View all cheques and block metadata in the chain.

πŸ” Verify a Cheque

1. Go to: http://127.0.0.1:8000/cheques/verify_cheque_form/
2. Fill in:
   - Payee
   - Amount
   - Date
   - Signature
3. Copy the signature from the Admin Panel if needed.
4. Submit to validate the cheque.

πŸ–ΌοΈ Screenshots

Homepage

Homepage of the E-Cheque System


Blockchain View

Blockchain listing all issued cheques


Verification Form

Form to verify cheque authenticity


πŸ“¦ Deployment

# Set up virtual environment
python -m venv venv

# Activate it:
source venv/bin/activate    # Linux/macOS
venv\Scripts\activate       # Windows

# Install dependencies
pip install -r requirements.txt

# Run migrations
python manage.py migrate

# Collect static files (only if DEBUG=False)
python manage.py collectstatic

# Start server
python manage.py runserver

πŸ‘¨β€πŸ’Ό Author & License

Created by [Satyam pote]  
Built using Django, Python & Cryptography  
Licensed under the MIT License  

About

A secure Django-based web application for creating, storing, and verifying electronic cheques using blockchain principles and RSA encryption.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages