summaryrefslogtreecommitdiff
path: root/openid/constants.py
blob: 8128a27f8b6a71c9ea76a06a7ed9e2d02124f2ca (plain)
1
2
3
4
5
6
7
8
9
10
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