diff --git a/.client_test_3.py.swp b/.client_test_3.py.swp new file mode 100644 index 0000000..4b5b6dd Binary files /dev/null and b/.client_test_3.py.swp differ diff --git a/README.md b/README.md index 7297714..623e5bd 100644 --- a/README.md +++ b/README.md @@ -5,5 +5,9 @@ * Generate keys * Store generated keys * 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/ diff --git a/client_test_3.py b/client_test_3.py index 4c22173..26e9bd5 100644 --- a/client_test_3.py +++ b/client_test_3.py @@ -34,7 +34,7 @@ while MESSAGE != 'exit': got_pub_key_server = True # 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(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("Sending current client public key [ ... ] ") tcpClientA.send(encrypted_public_key)