Skip to content

Commit b0c7a53

Browse files
committed
communication part is done
1 parent 86ab4c2 commit b0c7a53

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

__pycache__/RSA.cpython-310.pyc

0 Bytes
Binary file not shown.

server.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,14 @@
2727
client_socket.send(str(public_A[1]).encode()) # send e
2828

2929
# handshake is done now get the message and encrypt it
30-
message=input("please write a message to send : ")
31-
encoded_messages=RSA.en.encode(message)
30+
3231

3332

3433
while True:
34+
# get the message
35+
message=input("please write a message to send : ")
36+
encoded_messages=RSA.en.encode(message)
37+
3538
# send number of groups
3639
client_socket.send(str(len(encoded_messages)).encode())
3740

0 commit comments

Comments
 (0)