first implementation of secure

This commit is contained in:
Richard
2023-11-18 10:59:36 +01:00
parent 18e212dc80
commit ffedfe533d
3 changed files with 127 additions and 1 deletions

16
tests/secure.py Normal file
View File

@@ -0,0 +1,16 @@
import socket
from struct import pack, unpack
from time import time, sleep
def sock():
addr = ("localhost", 13370)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(addr)
return s
def test(s):
s.sendall(b"\x0010x snoeperfloep,123x sapperflap\n")
print(s.recv(1024))
s.close()
test(sock())