j = 0; S = range(256) for i in range(256): j = (j + S[i] + K[i%n]) % 256 S[i], S[j] = S[j], S[i]
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter