mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-22 07:56:28 -05:00
Updated readme and fixed typos
This commit is contained in:
parent
843c1a77b7
commit
4ffe4482d3
4 changed files with 701 additions and 380 deletions
|
|
@ -437,6 +437,7 @@ class Link:
|
|||
if self.__encryption_disabled:
|
||||
return plaintext
|
||||
try:
|
||||
# TODO: Optimise this re-allocation
|
||||
fernet = Fernet(base64.urlsafe_b64encode(self.derived_key))
|
||||
ciphertext = base64.urlsafe_b64decode(fernet.encrypt(plaintext))
|
||||
return ciphertext
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class Resource:
|
|||
#
|
||||
# A small system in this regard is
|
||||
# defined as a Raspberry Pi, which should
|
||||
# be able to compress, encrypt and hasmap
|
||||
# be able to compress, encrypt and hashmap
|
||||
# the resource in about 10 seconds.
|
||||
MAX_EFFICIENT_SIZE = 16 * 1024 * 1024
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue