Island: Remove protected self._formatted_key member

This commit is contained in:
Mike Salvatore 2022-07-19 09:49:31 -04:00
parent 9654e869a7
commit 061c002c94
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ class KeyBasedEncryptor(IEncryptor):
:param EncryptionKey32Bytes key: The encryption key with which the object should be
initialized.
"""
self._formatted_key = base64.urlsafe_b64encode(key)
self._fernet = Fernet(self._formatted_key)
formatted_key = base64.urlsafe_b64encode(key)
self._fernet = Fernet(formatted_key)
def encrypt(self, plaintext: bytes) -> bytes:
"""