readme update (lib to be installed)
This commit is contained in:
parent
3937416f40
commit
36787a7e19
BIN
.client_test_3.py.swp
Normal file
BIN
.client_test_3.py.swp
Normal file
Binary file not shown.
@ -5,5 +5,9 @@
|
|||||||
* Generate keys
|
* Generate keys
|
||||||
* Store generated keys
|
* Store generated keys
|
||||||
* Load stored keys from file
|
* Load stored keys from file
|
||||||
* If keys do not exist, create it
|
* If keys do not exist, create it
|
||||||
|
|
||||||
|
## Libs to install (PIP)
|
||||||
|
|
||||||
|
* fernet https://cryptography.io/en/latest/fernet/
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,7 @@ while MESSAGE != 'exit':
|
|||||||
got_pub_key_server = True
|
got_pub_key_server = True
|
||||||
# Now we have the pub key of the server, we will send our pub key too
|
# Now we have the pub key of the server, we will send our pub key too
|
||||||
#encrypted_public_key = encrypt_msg(public_key_pem, public_key_server)
|
#encrypted_public_key = encrypt_msg(public_key_pem, public_key_server)
|
||||||
encrypted_public_key = encrypt_msg(bytes("test123456789000000000000000000000000000iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii000", 'utf-8'), public_key_server)
|
encrypted_public_key = encrypt_msg(bytes("test123456789000000000000000000000000000iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii000", 'utf-8'), public_key_server)
|
||||||
print("Server public key received")
|
print("Server public key received")
|
||||||
print("Sending current client public key [ ... ] ")
|
print("Sending current client public key [ ... ] ")
|
||||||
tcpClientA.send(encrypted_public_key)
|
tcpClientA.send(encrypted_public_key)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user