An easy to use, minimal trust security layer.
Project description
MTSL
MTSL is an easy-to-use, relatively simple, low blast radius security layer.
It works similar to the TLS socket wrapper from ssl.
Example:
from mtsl import MTSLContext
import socket
ctx = MTSLContext()
ctx.authority_file("authority.pub.elle")
ctx.subject_files('subject.pub.elle', 'subject.sec.elle')
sock = socket.socket()
sock.connect('12.34.56.78')
secure_sock = ctx.wrap_socket(sock)
# send/recv works from here
# conn from `socket.accept()` works this way as well
sock.listen()
while 1:
c, addr = sock.accept()
with ctx.wrap_socket(c) as secure_conn:
pass # send/recv works from here
Read source code for full technical details if you're a nerd like me.
Or just float off into the ether and accept that I had to know what I was doing so you don't.
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 mtsl-0.1.0.6.tar.gz.
File metadata
- Download URL: mtsl-0.1.0.6.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96546e680c191c546b18d759b1b52643975c658af226fe8712d9bb84384b6131
|
|
| MD5 |
629b9dc7c21bbe743d5916eb0669e7a5
|
|
| BLAKE2b-256 |
70b27523a3b0f1ef55cc0858569608eb5055d0834f472dbc842975b0027bc252
|
File details
Details for the file mtsl-0.1.0.6-py3-none-any.whl.
File metadata
- Download URL: mtsl-0.1.0.6-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00a767e1e5e5b4c108a7427487794e40180f509ab27f937c61eed66548e8122c
|
|
| MD5 |
f14ebf51bd92f3e91dd12b21f7c99166
|
|
| BLAKE2b-256 |
067bef5be2af9e9a0b0a17e9dbda7b6a1f9c6d1326195c8fd10edc63623dac41
|