/SafeChatting

Program uses RSA to encrypt/decrypt messages

Primary LanguagePython

SafeChatting

Program uses RSA to encrypt/decrypt messages
The public and secret keys are generated when the client tries to connect to the server, then the client sends public key to the server.
Server or user encrypt the message using public key of the receiver.
Every user doesn't share his secret key, which makes chatting safe.

Required to have all the modules in the same directory: Знімок екрана 2022-04-28 о 11 25 06

To start a server enter 'python server.py' Знімок екрана 2022-04-28 о 11 19 01

To start client.py write 'python client.py {username}'in the terminal: image

Here's the example of usage:

Знімок екрана 2022-04-28 о 19 20 05

As seen on the picture, user can enter '|' sign to indicate receivers - can be one person or more
If there is no '|' sign, then the message is sent to everyone.

If username is wrong, user can resend a message: Знімок екрана 2022-04-28 о 11 14 11

Allowed characters are ascii symbols in range from 32 to 122 inclusively

Message integrity implemented, the message with warning about error in sending the message can be printed.