summaryrefslogtreecommitdiff
path: root/openid/constants.py
diff options
context:
space:
mode:
Diffstat (limited to 'openid/constants.py')
-rw-r--r--openid/constants.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/openid/constants.py b/openid/constants.py
new file mode 100644
index 0000000..8128a27
--- /dev/null
+++ b/openid/constants.py
@@ -0,0 +1,11 @@
+"""Basic constants for openid library."""
+from __future__ import unicode_literals
+
+# Default Diffie-Hellman modulus and generator.
+# Defined in OpenID specification http://openid.net/specs/openid-authentication-2_0.html#pvalue
+DEFAULT_DH_MODULUS = int(
+ '155172898181473697471232257763715539915724801966915404479707795314057629378541917580651227423698188993727816152646'
+ '631438561595825688188889951272158842675419950341258706556549803580104870537681476726513255747040765857479291291572'
+ '334510643245094715007229621094194349783925984760375594985848253359305585439638443'
+)
+DEFAULT_DH_GENERATOR = 2