RC4 - Algoritmo central

PHOTO EMBED

Tue Aug 03 2021 19:45:50 GMT+0000 (UTC)

Saved by @luisjdominguezp #c

i = 0
j = 0
for b in range(m):
    i = (i + 1) % 256
    j = (j + S[i]) % 256
    S[i], S[j] = S[j], S[i]
    KS[b] = S[(S[i] + S[j]) % 256]
content_copyCOPY