Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

encryptedsocket-0.0.24.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

encryptedsocket-0.0.24-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file encryptedsocket-0.0.24.tar.gz.

File metadata

  • Download URL: encryptedsocket-0.0.24.tar.gz
  • Upload date:
  • Size: 3.5 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

Hashes for encryptedsocket-0.0.24.tar.gz
Algorithm Hash digest
SHA256 8d1b1a3c213952ce5a73932a5be10ddc5d1a82dafb6e629e1362d66c252ac3be
MD5 2edeaf12c8b9dc06773bd28716a4ab78
BLAKE2b-256 6ee55a7354607639e7ad4316f897b75108a95592e8f1f76b7cbedf34891459ef

See more details on using hashes here.

File details

Details for the file encryptedsocket-0.0.24-py3-none-any.whl.

File metadata

  • Download URL: encryptedsocket-0.0.24-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

Hashes for encryptedsocket-0.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 11b776da07e8cfe188823467d63414e05ec1ba086cb202b4c33b314721594036
MD5 1c734fd0ea87500c1c7e2fdf3e1e608a
BLAKE2b-256 4adb115c53b04ad537dbcac07406af8bcc51d78b68019f14a26ea7e6edf45d99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page