2 ms·
Here's one I wrote a while back that has its own RC4 routine in Perl, so no external dependencies needed. https://github.com/psypete/public-bin/blob/public-bin
by peterwwillis 11y ago
Here's one I wrote a while back that has its own RC4 routine in Perl, so no external dependencies needed.
https://github.com/psypete/public-bin/blob/public-bin/src/system/encsh.pl https://github.com/psypete/public-bin/blob/public-bin/src/sy...
- tptacek 11y agoDon't ever use RC4.
- peterwwillis 11y agoCan you show any reasonable case where encrypting a small file once would be unsafe with RC4? Maybe if you had 74 million such files...
- kkl 11y agoThere are known biases throughout RC4 output. There are really bad biases towards the beginning. A small file would likely be XOR'd with certain bytes or patterns of bytes. If this is not exploitable in your hypothetical scenario, it maybe exploitable in others. I think this is generally unsafe.