znote 1.2.8__tar.gz → 1.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {znote-1.2.8/znote.egg-info → znote-1.3.0}/PKG-INFO +1 -1
- {znote-1.2.8 → znote-1.3.0}/znote/client.py +3 -4
- {znote-1.2.8 → znote-1.3.0}/znote/server.py +8 -0
- {znote-1.2.8 → znote-1.3.0/znote.egg-info}/PKG-INFO +1 -1
- {znote-1.2.8 → znote-1.3.0}/LICENSE +0 -0
- {znote-1.2.8 → znote-1.3.0}/README.md +0 -0
- {znote-1.2.8 → znote-1.3.0}/setup.cfg +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/__init__.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/app/display.p +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/app/display.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/app/input.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/core/auth.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/core/client/connect.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/core/client/fetch.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/core/client/metafile.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/core/client/settings.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/core/client/token.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/core/config.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/core/editor.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/core/gen.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/core/pack.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/core/server/note.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/core/server/settings.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/core/workspace.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/main.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote/model/models.py +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote.egg-info/SOURCES.txt +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote.egg-info/dependency_links.txt +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote.egg-info/entry_points.txt +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote.egg-info/requires.txt +0 -0
- {znote-1.2.8 → znote-1.3.0}/znote.egg-info/top_level.txt +0 -0
|
@@ -93,7 +93,7 @@ class Client():
|
|
|
93
93
|
# Sauvegarde du IV, de la clé symétrique chiffrée et du fichier chiffré
|
|
94
94
|
message_cipher = iv + sym_key_encrypted + ciphertext
|
|
95
95
|
|
|
96
|
-
self.connexion.send(message_cipher)
|
|
96
|
+
self.connexion.send(message_cipher + b'EOF')
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
#Premier appel avec le serveur
|
|
@@ -112,7 +112,7 @@ class Client():
|
|
|
112
112
|
payload = {'method': 'sendKey', 'content': __main__.settings.PubKey.decode()}
|
|
113
113
|
logs("Envoi de la clé public au serveur", component="client")
|
|
114
114
|
|
|
115
|
-
self.connexion.send(encrypt(json.dumps(payload).encode()))
|
|
115
|
+
self.connexion.send(encrypt(json.dumps(payload).encode()) + b'EOF')
|
|
116
116
|
|
|
117
117
|
try:
|
|
118
118
|
message_recu = self.receive()
|
|
@@ -225,7 +225,6 @@ class Client():
|
|
|
225
225
|
self.well_come = True
|
|
226
226
|
|
|
227
227
|
message = None
|
|
228
|
-
|
|
229
228
|
#if not __main__.settings.pubserv_set:
|
|
230
229
|
#if not __main__.settings.serverhash:
|
|
231
230
|
|
|
@@ -662,7 +661,7 @@ class Client():
|
|
|
662
661
|
file_path = message['path']
|
|
663
662
|
else:
|
|
664
663
|
file_path = "."
|
|
665
|
-
|
|
664
|
+
|
|
666
665
|
diff_output = build_diff_tree(file_path, message["tree"])
|
|
667
666
|
print_tree(diff_output)
|
|
668
667
|
|
|
@@ -141,6 +141,13 @@ class ThreadClient(threading.Thread):
|
|
|
141
141
|
if ready_to_read:
|
|
142
142
|
chunk = self.connexion.recv(2048)
|
|
143
143
|
|
|
144
|
+
while not chunk.endswith(b'EOF'):
|
|
145
|
+
data += chunk
|
|
146
|
+
|
|
147
|
+
return data+chunk[:-3]
|
|
148
|
+
"""
|
|
149
|
+
if chunk:
|
|
150
|
+
print(chunk)
|
|
144
151
|
if chunk and len(chunk)<2048:
|
|
145
152
|
return data+chunk
|
|
146
153
|
|
|
@@ -148,6 +155,7 @@ class ThreadClient(threading.Thread):
|
|
|
148
155
|
return data
|
|
149
156
|
|
|
150
157
|
data += chunk
|
|
158
|
+
"""
|
|
151
159
|
|
|
152
160
|
|
|
153
161
|
#Déchiffrement du message du client
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|