diff options
| -rw-r--r-- | dns/tsig.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dns/tsig.py b/dns/tsig.py index 117b5e5..5c773ff 100644 --- a/dns/tsig.py +++ b/dns/tsig.py @@ -336,3 +336,8 @@ class Key: self.name == other.name and self.secret == other.secret and self.algorithm == other.algorithm) + + def __repr__(self): + return f"<DNS key name='{self.name}', " + \ + f"algorithm='{self.algorithm}', " + \ + f"secret='{base64.b64encode(self.secret).decode()}'>" |
