mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-07-22 07:58:10 -07:00
Updated readme and fixed typos
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user