Compare commits

..

No commits in common. "a865eee0e6ab64f944ca609356d0c24115adbd8a" and "8bec4c07cc2fcfa37b2cb23ee379861a13e0beb7" have entirely different histories.

4 changed files with 3 additions and 9 deletions

View File

@ -6,13 +6,13 @@ This is the monorepo for PierMesh.
# Docs
You can find the full docs here: [docs/](https://git.utopic.work/PierMesh/piermesh/src/branch/main/docs)
You can find the full docs here: [docs/](docs/)
# How to use
Note: these instructions will probably only work on Linux at the moment
Note: check the scripts to make sure they'll work with your system, and in general I recommend checking scripts before you run them
Note: check the scripts to make sure they'll work with your system, and in general I reccomend checking scripts before you run them
Follow Meshtastic's guide on setting up your device: [https://meshtastic.org/docs/getting-started/](https://meshtastic.org/docs/getting-started/)
Make sure you have the latest Python installed

View File

@ -257,7 +257,6 @@ class DHEFern:
"""
return os.urandom(16)
# TODO: Build in transport security (node/node)
def encrypt(self, data, nodeID: str, isDict: bool = True):
"""
Do Fernet encryption

View File

@ -27,7 +27,6 @@ class Message:
senderDisplayName: int,
recipient: int,
recipientNode: int,
cryptographyInfo,
dataSize: int = 128,
wantFullResponse: bool = False,
packetsClass: int = 0,
@ -72,10 +71,7 @@ class Message:
)
self.packets = packets
else:
# Data passed in by peers should already have been e2ee encrypted by SubtleCrypto
# Transport encryption
# bytesObject = lzma.compress(bytesObject, str(recipientNode).zfill(6), isDict=False)
bytesObject = cryptographyInfo.encrypt(bytesObject, self.no)
bytesObject = lzma.compress(bytesObject)
packets = []
self.packetsID = random.randrange(0, 999999)
pnum = 1

View File

@ -227,7 +227,6 @@ class Transceiver:
senderName,
recipient,
recipientNode,
self.cryptographyInfo,
packetsClass=packetsClass,
)
for p in tp.packets: