Island: Add details about what kind of key is acceptable in KeyBasedEncryptor

This commit is contained in:
Shreya Malviya 2022-07-19 15:27:37 +05:30
parent bd1c788a4c
commit cbe842029a
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ class KeyBasedEncryptor(IEncryptor):
def __init__(self, key: bytes):
"""
Initializes a KeyBasedEncryptor object
:param bytes key: The encryption key with which the object should be initialized
:param bytes key: The encryption key with which the object should be initialized.
This should be a URL-safe base64-encoded 32-byte key.
"""
self._key = key
self._fernet_object = Fernet(self._key)