1 USING: kernel math sequences namespaces math-contrib ;
4 ! http://en.wikipedia.org/wiki/RC4_%28cipher%29
13 ! key scheduling algorithm, initialize s
18 dup s get nth j get + over l get mod key get nth + 255 bitand j set
19 dup j get s get exchange
23 i get 1+ 255 bitand i set
24 j get i get s get nth + 255 bitand j set
25 i get j get s get exchange
26 i get s get nth j get s get nth + 255 bitand s get nth ;