Skip to content

Commit

Permalink
Diffie-Hellman Key Exchange Algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
privateboss0 authored Nov 29, 2023
1 parent bb0c91d commit 0e5f2a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def primitive_check(g, p):
#1024 prime bits is good, 2048 is better, 4096 is best excluding quantum computational power maturity."""

while True:
P = secrets.randbelow(7000)
P = secrets.randbelow(4096)
if prime_checker(P) == -1:
continue
break
Expand Down

0 comments on commit 0e5f2a7

Please sign in to comment.