Skip to content

Commit

Permalink
timeout needs to be activated for the higher bit rsa and thought that…
Browse files Browse the repository at this point in the history
… the seed is not rlly random but aparently it is
  • Loading branch information
SirGankalot committed Jun 4, 2024
1 parent 84810cc commit d347018
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion checker/src/checker_util_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async def create_user(
"password2": password2,
},
follow_redirects=True,
timeout=2.0,
#timeout=10.0,
)

logger.info(f"Server answered: {response.status_code} - {response.text}")
Expand Down
2 changes: 0 additions & 2 deletions service/src/rsa_encryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ def generate_key_pair(p,q):

# Generate a random n-bit number
def nBitRandom(n):
# seed = time.time_ns()
# random.seed(seed)
return random.randrange(2**(n-1)+1, 2**n - 1)


Expand Down

0 comments on commit d347018

Please sign in to comment.