0% found this document useful (0 votes)
4 views13 pages

Block Chain

The project report details the development of a secure messaging application using RSA cryptography, implemented in Python with a Tkinter GUI. It includes code for message encryption and decryption using public and private keys, demonstrating the importance of cryptography in securing digital communication. The project highlights the successful application of RSA encryption in protecting sensitive data.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views13 pages

Block Chain

The project report details the development of a secure messaging application using RSA cryptography, implemented in Python with a Tkinter GUI. It includes code for message encryption and decryption using public and private keys, demonstrating the importance of cryptography in securing digital communication. The project highlights the successful application of RSA encryption in protecting sensitive data.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

PROJECT REPORT

ON
MASSAGING APP USING RSA

Developed By :-

Agechaniya Keval (236340316001)


Chandarana Jay H. (236340316008)

Bhalala Dax N. (236340316003)

Lunagariya Sharad C. (226340316035)

Submitted To:

INFORMATION TECHNOLOGY DEPARTMENT,

L E COLLEGE (Diploma) MORBI

1
Affiliated To:

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD


Lukhdhirji Engineering College (Diploma), Morbi-2

CERTIFICATE

This is certified that CHANDARANA JAY H. from LUKHDHIRJI


ENGINEERING COLLEGE (DIPLOMA), MORBI having enrolment no:-
236340316008 has complete report on Exam Form website semester 1st having
title “EXAM FORM WEB SITE” in a group consisting of 2 person.

Signature of Faculty Head of Department

2
.

INDEX

NO. Chapter No. Page No.

1 ACKNOWLEDGE 4

2 INTRODUCTION 5

3 CODE 6

4 OUTPUT 10

5 CONCLUSION 12

3
ACKNOWLEDGEMENT

We would like to thank our course faculty MR. P.K CHAVDA for giving his
almost attention and guidance for our project. We are especially thankful to head of
department PROF. M. P. PARMAR for his warm response toward us.

We are also thankful to all faculties and our colleagues of the information
technology department who helped us for the project and also provide us useful
information to complete 6th semester micro project.

- Agechaniya Keval

- Bhalala Dax N.

- Chandarana Jay H.

- Lunagariya Sharad

4
INTRODUCTION

This project develops a secure messaging application using


RSA cryptography. The system is implemented in Python
with a Tkinter graphical user interface (GUI) and uses the
cryptography library for encryption. In this application, a
user enters a message which is encrypted using a public key
and decrypted using a private key, ensuring secure
communication.

5
CODE

import tkinter as tk
from tkinter import ttk, messagebox
from [Link] import rsa, padding
from [Link] import hashes

private_key = rsa.generate_private_key(
public_exponent=65537,
key_size=2048
)
public_key = private_key.public_key()

encrypted_data = None

def encrypt_message():
global encrypted_data
message = input_text.get("1.0", [Link]).strip()

if not message:
[Link]("Warning", "Please enter a message!")
return

encrypted_data = public_key.encrypt(
[Link](),
[Link](
mgf=padding.MGF1(algorithm=hashes.SHA256()),
algorithm=hashes.SHA256(),
label=None
)
)

output_text.delete("1.0", [Link])
output_text.insert([Link], encrypted_data.hex())

6
def decrypt_message():
global encrypted_data

if encrypted_data is None:
[Link]("Error", "No encrypted data found!")
return

decrypted = private_key.decrypt(
encrypted_data,
[Link](
mgf=padding.MGF1(algorithm=hashes.SHA256()),
algorithm=hashes.SHA256(),
label=None
)
)

output_text.delete("1.0", [Link])
output_text.insert([Link], [Link]())

def clear_fields():
input_text.delete("1.0", [Link])
output_text.delete("1.0", [Link])

root = [Link]()
[Link]("🔐 RSA Secure Messaging")
[Link]("700x500")
[Link](bg="#1e1e2f")

style = [Link]()
style.theme_use("clam")

[Link]("TButton",
font=("Segoe UI", 11, "bold"),
padding=8)

[Link]("TLabel",
background="#1e1e2f",
foreground="white",
7
font=("Segoe UI", 12))

title_label = [Link](root, text="RSA Cryptography Secure Messaging System",


font=("Segoe UI", 16, "bold"))

title_label.pack(pady=15)

input_frame = [Link](root, bg="#2a2a40", bd=2, relief="ridge")


input_frame.pack(padx=20, pady=10, fill="both")

[Link](input_frame, text="Enter Message",


bg="#2a2a40", fg="white",
font=("Segoe UI", 12, "bold")).pack(pady=5)

input_text = [Link](input_frame, height=5, width=70,


bg="#12121c", fg="white",
insertbackground="white",
font=("Consolas", 11))
input_text.pack(padx=10, pady=10)

button_frame = [Link](root, bg="#1e1e2f")


button_frame.pack(pady=10)

encrypt_btn = [Link](button_frame, text="Encrypt 🔒", command=encrypt_message)


encrypt_btn.grid(row=0, column=0, padx=10)

decrypt_btn = [Link](button_frame, text="Decrypt 🔓", command=decrypt_message)


decrypt_btn.grid(row=0, column=1, padx=10)

clear_btn = [Link](button_frame, text="Clear 🗑", command=clear_fields)


clear_btn.grid(row=0, column=2, padx=10)

output_frame = [Link](root, bg="#2a2a40", bd=2, relief="ridge")


output_frame.pack(padx=20, pady=10, fill="both", expand=True)

[Link](output_frame, text="Output",
bg="#2a2a40", fg="white",
font=("Segoe UI", 12, "bold")).pack(pady=5)

8
output_text = [Link](output_frame, height=6, width=70,
bg="#12121c", fg="#00ffcc",
insertbackground="white",
font=("Consolas", 11))
output_text.pack(padx=10, pady=10)

[Link]

9
OUTPUT

10
11
CONCLUSION

The project successfully demonstrates how RSA


asymmetric encryption can secure digital
communication. Using Python, Tkinter, and the
cryptography library, the system encrypts and decrypts
messages through public and private keys. This project
shows the importance of cryptography in protecting
sensitive data and provides a basic model of secure
messaging systems used in modern applications.
.
.

12
REFRENCE

Reference -

Python org, w3school, github

13

You might also like