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.25.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.25-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: encryptedsocket-0.0.25.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.25.tar.gz
Algorithm Hash digest
SHA256 c7df84e8716fe0096f98e339f7a0e633030d694248276dec2aa89a9c8079bd58
MD5 f4cc95db4a305c4d3b8b66bbf9cdff3e
BLAKE2b-256 c6af4e1e7ed5e6388a6fb3bdec433f73502db13950d8392d144586e80a3c6ecd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: encryptedsocket-0.0.25-py3-none-any.whl
  • Upload date:
  • Size: 20.3 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.25-py3-none-any.whl
Algorithm Hash digest
SHA256 0fa73778227d29368ba4eb3e67def110a8941a2cc7361024a3923bbb286baf80
MD5 e849dd1aea52fb14efd4ff08ef5a60f7
BLAKE2b-256 10dbe08ba001b58b0ee2e8b7c08699bb35a9f9c7f2ef890c1a68b4dc80d9d9e9

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