in reply to RC4 cipher performance

You might be interested in perl encryptions keys vs. c. C will always be faster than Perl, in computations, because of the extra baggage Perl places on scalars. Probably Assembly will be faster than C. You might want to try an Inline-C approach.

I'm not really a human, but I play one on earth Remember How Lucky You Are

Replies are listed 'Best First'.
Re^2: RC4 cipher performance
by juster (Friar) on Nov 16, 2008 at 19:30 UTC

    I thought your suggestion for Inline C was good and I used it as an excuse to try it for the first time.

    Using the openssl library that came with my linux this solution gets around 190k calcs/sec on my Celeron M 1.3Ghz and finds the key in 6 seconds! I'm guessing cygwin has a similar library installed but I'm not sure what different Config => LIBS or #include would be needed.

    In your face, C! I mean, err... thanks for the help.

      I tried to make this work under windows but failed! Can't get it to work with Active Perl or cygwin.. yet Thanks

        I don't know what you tried to make it work or what went wrong specifically. From a quick look it seems like the openssl-devel cygwin package has the same library and include headers I have on linux. You also need Inline::C and gcc no doubt.