Skip to content

zuriby/freespeech

Repository files navigation

import rsa

public_key = {
    'e': 2675882593711619192831825545700746865452385370148628151329L, 
    'n': 883909798780433135736780607788005652044989484645602269721586041710368498202464602816198531891351125882802505927382436792472828967307688899841486917853821939712516713913342674887751918486084516698078784272338081077007880792566117543L
}

# 30
a = 'eJwVjrt1QwEMQntPkipHP0Ds8JZI78L7V1ZUUXDR/Xl/8vVInRE1ngymI9c9PVrfwfS4piHEbANN\nJxYX2h6hrSogksllF7ZKZAYqjUSX45oE/yHdXufSGx6stWCI0eNjq6KVTbGKvcrode7xUs21Qyc0\nBkZix6Czz65WcpEnfWs9hOVTi537NWJ2Pq+/3y/SxDIw'
# 15
b = 'eJwVj7F1QwEIA3tPkspPgIRgBy/hPkX2r8JvxbuT+Pn9i9eHdEQNlU5NM81B1+7lJJKNuMDqqjEM\nCQlhi72ZnvTKrQTXnjs6LlBgR3E0GsNkaKYGVV6Eo05u5Rl4bPWjiCntdIyFOoC5rVJts9IgTnsj\n8XRU5N5saOFNFbqX1OMvuo+4XtxXN37G83l93/+bojGs'

# 6
a1 = 'eJwVjrGNQwEIQ/tMctUJAwazQ5a4PkX2r85fQkLC+Nk/ny9eb4p97OwFtczJZdQxO3U+X44GmCxV\nT3nncII17LAj5tCoiNIpDhDmedvN1iVnIVUMjkScNRXCQQ9hz6zuDIHdDKdFZpaD6y5Xq+4YRbVh\nt3XrfM+hVkW7Mq+wPPhqFtwYags1LmzwoIfxfv39/gOrKDHB'
# 3
b1 = 'eJwVj7ttREEMA/OrxNGB+lFiD9fE5Q7cf2Q+YANhVkNQP79/8frcVq6aQ466alCcopBUbUMSt6Og\ni4kHKVUEO2CInmewUrdbAfEuL5YxVxO0I2KJeFb8BcVozqZ29rqdb6yqNEh1Lu6ZOp+9xCHi6Ydr\nO5S9rt6ocvpGArz1m3Mppy/WdJmyUS4xvufz+r7/AclnMg0='

def _verify(cypher):
    return rsa.verify(cypher, public_key)

NUM_OF_USERS = int(_verify(a))

# CONCURRENT_SESSIONS is not in use. 
# Only NUM_OF_USERS since max of current sessions will be NUM_OF_USERS / 2
CONCURRENT_SESSIONS = int(_verify(b))

Releases

No releases published

Packages

No packages published