in reply to Re: RC4 cipher performance
in thread RC4 cipher performance

Every attempt to use 'last' in the loop failed to achieve my goal of dumping out of the current iteration and going onto the next. So, I went back to an old shell script method that worked. I am evaluating your suggestion in the while loop to see if this would have worked using my method in the for loop.

I used the for loop to evaluate one character at a time from the decrypted message to I can bomb out sooner and not have to evaluate the entire message. Since I have not yet groc'd your use of the regex, I am not sure it does the same thing though it looks like it.

Thanks

Replies are listed 'Best First'.
Re^3: RC4 cipher performance
by ikegami (Patriarch) on Nov 16, 2008 at 02:03 UTC

    Every attempt to use 'last' in the loop failed to achieve my goal of dumping out of the current iteration and going onto the next.

    Really? I don't see why last wouldn't work in the code you posted.