Secured yet simple socket server-client for interprocess communications.
Project description
Encrypted Socket
Secured yet simple socket server-client for interprocess communications.
Hierarchy
encryptedsocket
|---- SS()
| |---- start()
| '---- stop()
'---- SC()
'---- request()
Example
python
# You can start an unencrypted socket server if you know what you are doing
# SS(host="remote ip", port=12321, encrypted=False)
# SC(host="remote ip", port=12321, encrypted=False)
from encryptedsocket import *
# server
def test(data):
return f"Data:\t{data}"
functions = dict(test=test)
SS(functions=functions).start()
print("test socket server started.", flush=True)
# # Nothing is printed, you must start it from an other thread
# client
for i in range(5):
print(SC().request(command="test", data=f"Hello, {i}!"))
print("test socket client started.", flush=True)
# Data: Hello, 0!
# Data: Hello, 1!
# Data: Hello, 2!
# Data: Hello, 3!
# Data: Hello, 4!
# test socket client started.
shell
rem encryptedsocket.exe {server|client}
rem echo test server-client example
encryptedsocket.exe server
encryptedsocket.exe client
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file encryptedsocket-0.0.23.tar.gz.
File metadata
- Download URL: encryptedsocket-0.0.23.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02fb2356ae63939382f1808b27e44e17d6be040ade898cf851d325d5ba1c9574
|
|
| MD5 |
70d6ed3e6d5e98d9640b3090ba478a8d
|
|
| BLAKE2b-256 |
77d34c3454419c9285bc64143efa03a644d0fdff3cbe2f4d51082add6e2c2b59
|
File details
Details for the file encryptedsocket-0.0.23-py3-none-any.whl.
File metadata
- Download URL: encryptedsocket-0.0.23-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7ee839704867c54c1069d137db3891d631a135eb90dafe5a4a4b2e2411e295c
|
|
| MD5 |
67c52e92b82ddb99ae9d09db3b2a27a9
|
|
| BLAKE2b-256 |
ad80d644353008567f897c992a237a5a6c02e672330fe36e7b27778ed76ebc10
|