Thanks to a friend, we found out what happened. He told me to type a key
echo -ne "a" | openssl rc4 -pass pass:a -e -nopad -nosalt -p key=0CC175B9C0F1B6A831C399E269772661
We see that the addition is added, with 0x61 we entered at the end. It turns out openssl generates a key from the pass.
Instead, if we directly enter the key with the -K option:
echo -ne "a" | openssl rc4 -K 61 -e -nopad -nosalt -p key=61000000000000000000000000000000
We see that there is an addition with '0'. In general, he does not want us to use a key that is too small (since for rc4 the key must be at least 40 bits long). Now try the 128b key:
echo -ne "foobar" | openssl rc4 -K "6162636465666768696A6B6C6D6E6F70" -e -nopad -nosalt | xxd 0000000: caaf 2cbf d334 ..,..4
The result is the same as on the web page :)
source share