Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyse the sbox generating algorithm ... #1

Open
gynamics opened this issue Mar 28, 2022 · 0 comments
Open

Analyse the sbox generating algorithm ... #1

gynamics opened this issue Mar 28, 2022 · 0 comments

Comments

@gynamics
Copy link
Owner

Well, it happened to be something very, very interesting, in fact, I tested the salting algorthm with several cases by:

d = {}
for i in range(1, 2**16):
    box = tuple(nyac.nyasbox(nyac.nya_locales['zh_cn'], salt = i))
    if box in d:
        d[box] += 1
    else:
        d[box] = 1

print('space size:', len(d))

And the output happened to be very sparse, but why? I just made that function by chance!

@gynamics gynamics changed the title Analysis the sbox generating algorithm ... Analyse the sbox generating algorithm ... Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant