Merge pull request #20 from Haxe18/main

Enabled raw key print
This commit is contained in:
larley
2025-02-22 12:37:36 +01:00
committed by GitHub

View File

@@ -47,6 +47,12 @@ class Key:
self.key_length = key_length self.key_length = key_length
self.key = key self.key = key
def __repr__(self) -> str:
return "{name}({items})".format(
name=self.__class__.__name__,
items=", ".join([f"{k}={repr(v)}" for k, v in self.__dict__.items()])
)
@staticmethod @staticmethod
def kid_to_uuid(kid: Union[str, bytes]) -> UUID: def kid_to_uuid(kid: Union[str, bytes]) -> UUID:
""" """