Island: Remove unneeded docstring fields in KeyBasedEncryptor

This commit is contained in:
Shreya Malviya 2022-07-19 19:07:05 +05:30
parent a7b4bbbd52
commit 6d6b7e8cba
1 changed files with 2 additions and 4 deletions

View File

@ -30,17 +30,15 @@ class KeyBasedEncryptor(IEncryptor):
def encrypt(self, plaintext: bytes) -> bytes:
"""
Encrypts a given bytestream
:param bytes plaintext: The bytestream to encrypt
:param plaintext: The bytestream to encrypt
:return: Encrypted message
:rtype: bytes
"""
return self._fernet.encrypt(plaintext)
def decrypt(self, ciphertext: bytes) -> bytes:
"""
Decrypts a given bytestream
:param bytes ciphertext: The bytestream to decrypt
:param ciphertext: The bytestream to decrypt
:return: Decrypted message
:rtype: bytes
"""
return self._fernet.decrypt(ciphertext)