aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorTerry Chia <terrycwk1994@gmail.com>2014-07-10 14:31:28 +0800
committerTerry Chia <terrycwk1994@gmail.com>2014-07-10 15:45:51 +0800
commit20c85a52c48c09942285ca7f870595c5973c7a55 (patch)
tree1af7cf880ad9cb30b1d22c3722086c8038f3fef2 /cryptography
parent3fbdd4a63c3089b527bf9c1d48fc37a1b689243a (diff)
downloadcryptography-20c85a52c48c09942285ca7f870595c5973c7a55.tar.gz
cryptography-20c85a52c48c09942285ca7f870595c5973c7a55.tar.bz2
cryptography-20c85a52c48c09942285ca7f870595c5973c7a55.zip
Add a sensible repr to RSAPublicNumbers
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/primitives/asymmetric/rsa.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cryptography/hazmat/primitives/asymmetric/rsa.py b/cryptography/hazmat/primitives/asymmetric/rsa.py
index 15ec52ac..398b3763 100644
--- a/cryptography/hazmat/primitives/asymmetric/rsa.py
+++ b/cryptography/hazmat/primitives/asymmetric/rsa.py
@@ -402,3 +402,6 @@ class RSAPublicNumbers(object):
def public_key(self, backend):
return backend.load_rsa_public_numbers(self)
+
+ def __repr__(self):
+ return "<RSAPublicNumbers(e={0}, n={1})>".format(self._e, self._n)