Updated readme and fixed typos

This commit is contained in:
Mark Qvist 2020-06-14 11:26:11 +02:00
parent 843c1a77b7
commit 4ffe4482d3
4 changed files with 701 additions and 380 deletions

View file

@ -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