Skip to content

Instantly share code, notes, and snippets.

@rhotav
Created August 26, 2022 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhotav/f803ecfe78b1387c9abd2fcb7b30f33d to your computer and use it in GitHub Desktop.
Save rhotav/f803ecfe78b1387c9abd2fcb7b30f33d to your computer and use it in GitHub Desktop.
blumblumshub python implementation
p = 283
q = 79
s = 13
N = p * s
x = []
x.append((s ** 2) % N)
for i in range(1, 25):
x.append((x[i - 1] ** 2) % N)
print(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment