Skip to content

Commit 050c074

Browse files
committed
add 'from_base_64'
1 parent 27bed0d commit 050c074

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cryptolib/serializers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,7 @@ def decrypt(self, encrypted_text: bytes) -> bytes:
5151
@staticmethod
5252
def from_base_85(deserializable: Union[str, bytes]) -> bytes:
5353
return base64.a85decode(deserializable)
54+
55+
@staticmethod
56+
def from_base_64(deserializable: Union[str, bytes]) -> bytes:
57+
return base64.b64decode(deserializable)

0 commit comments

Comments
 (0)