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

Uploaded Python 3

File details

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

File metadata

  • Download URL: encryptedsocket-0.0.27.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.27.tar.gz
Algorithm Hash digest
SHA256 907c44f1ed0fc2e03c2b386d4c22d36bf9c5bddc835b1285f47031b258330bc4
MD5 dfcb8c9982496af6279eb973025d6f58
BLAKE2b-256 56159fdbca06dc21d62054b7406c4030d73a55549828e573ced1a5c609a9b98e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: encryptedsocket-0.0.27-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.27-py3-none-any.whl
Algorithm Hash digest
SHA256 c243ad3c73c47aed8be7925bf5375eeeca4096fe602da77483b507295cff7d06
MD5 6b5eac8d7df228fd7c457a7958962e34
BLAKE2b-256 60bfb48b9cbd3edee4d485be13ca272e71bf2a459f0f6495bf97e0770cc61c12

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