0% found this document useful (0 votes)
6 views14 pages

Secure Web Chat App with RSA Encryption

The document outlines the development of a web-based chat application that facilitates real-time communication between users while ensuring security through end-to-end encryption using the RSA algorithm. It emphasizes user-friendliness and privacy, allowing for point-to-point messaging but does not support audio, video, or file transfers. The application aims to enhance user engagement and provide a seamless messaging experience.

Uploaded by

Sijan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views14 pages

Secure Web Chat App with RSA Encryption

The document outlines the development of a web-based chat application that facilitates real-time communication between users while ensuring security through end-to-end encryption using the RSA algorithm. It emphasizes user-friendliness and privacy, allowing for point-to-point messaging but does not support audio, video, or file transfers. The application aims to enhance user engagement and provide a seamless messaging experience.

Uploaded by

Sijan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Web-Based Chat

Application using
Cryptography Algorithm
Presented By:
Bijay Khadka
Sijan Khadka

1
Introduction
• Messaging apps provide real-time communication with simple functionality,
making interaction seamless.
• Users can send texts, emails, team chats, or instant messages across various
platforms like iOS, Android, Microsoft, Gmail, Slack, and social media.
• These applications enhance global connectivity by enabling instant
conversations.
• Custom messaging features create engaging, personalized interactions similar
to in-person conversations.
• Keeping users engaged on a platform prevents them from seeking alternative
messaging solutions.
• Supports private, group, and large-scale chat options to meet different user
needs.
• Messaging apps shape modern communication, making conversations feel
instant and immersive.
2
Problem Statement
• This project is to create a chat application with a server and
users to enable users to chat with each other and develop an
instant messaging solution to enable users to seamlessly
communicate with one another.
• Real time communication : A reliable and secure chat plays a
huge role in ensuring a positive user experience in your app.
Making sure that messages between active users are being
sent and received in real-time
• Secure communication : When dealing with sensitive
information like compliance requirements or personal user
information, making sure that your real-time chat application
has the proper security features.
3
Objectives
• i. To develop a web-based chat application where users
are able to communicate with each other with ease.
• ii. To encourage user friendliness with interactive user
interface such that it is very easy to use enabling even
a novice person to use it.
• iii. To build a secure chat application with end-to-end
encryption where the messages communicated between
the users are encrypted using encryption algorithm.

4
Scope and Limitations
• Scope
i. This chat application will enable the communication
between two users using point to point
communication.
ii. Users can send message to other users while
maintaining the optimum privacy with the help of end-
to-end encryption.

5
Scope and Limitations
• Limitations
i. This application does not support audio and vide
conversations.
ii. Transfer of files are not supported.

6
Algorithm
• RSA Algorithm
• The RSA algorithm (Rivest-Shamir-Adleman) is one of the most
widely used asymmetric cryptographic algorithms that allows
secure data transmission, especially useful for securing web-based
chat applications. In the context of a web-based chat
application, RSA can be used for encrypting messages, securely
exchanging keys, and ensuring confidentiality and integrity in
communication.
• Asymmetric Encryption:
• RSA relies on two keys: a public key and a private key.
• Public Key is shared openly and used to encrypt data.
• Private Key is kept secret and is used to decrypt the data encrypted by
the public key.
7
Algorithm
• 1. Key Generation
• Select two prime numbers p and q.
• Compute n as the product of p and q.
• Compute Euler's Totient Function ϕ(n).
• Choose a public exponent e, ensuring it is coprime with ϕ(n)
• Compute the private exponent d, the modular inverse of e modulo ϕ(n)
• Public Key: (e,n)
Private Key: (d,n)
• 2. Encryption (Sender)
• Obtain the recipient's public key (e,n)
• Convert the message into a number.
• Encrypt the message using the recipient's public key.
• Send the encrypted message (ciphertext) to the recipient.
8
Algorithm
• 3. Decryption (Receiver)
• Obtain the recipient's private key (d,n)
• Decrypt the ciphertext using the private key.
• Convert the decrypted number back to the original
message.

9
Algorithm
• HMAC-SHA256 Algorithm
• HMAC (Hash-based Message Authentication Code) with
SHA-256 (Secure Hash Algorithm 256-bit) is a widely
used cryptographic algorithm for ensuring both data
integrity and authenticity in a message. When applied
to a web-based chat application, HMAC-SHA256 plays a
key role in securing communication between the client
(user) and the server, particularly for preventing
tampering and ensuring the authenticity of messages.

10
Use Case Diagram

11
State Diagram

12
Sequence Diagram

13
Expected Outcome
• The proposed system will be a secure and user-friendly
web-based chat application that enables two users to
communicate via text messages in real-time, with a
strong emphasis on privacy through end-to-end
encryption using RSA.

14

You might also like