Thanks for your reply! But it's still not right.
I want to verify the entry in evptest.txt, like the following: # RC4 tests (from rc4test) RC4:0123456789abcdef0123456789abcdef::0123456789abcdef:75b7878099e0c596 I think in this example string "0123456789abcdef0123456789abcdef" is for the key used by rc4, not the password where the key and the iv derived from. And from the man page of enc, we can see that the -k is used for password, the -K is for the key directly used by rc4. But there is no iv in the above entry, however the openssl rc4 need it. so I am confused. Another wonder is that the value for -K is must be hex digits, so we need to hex dump it, The following is steps I tried: echo -n "0123456789abcdef0123456789abcdef" > key.in xxd -r -g0 -p key.in key.out But the content in key.out is not visible, so I also don't know how to specify it in the command line. Can you give me the steps to verify the above RC4 entry? Any help would be appreciated. Thanks in advance! On Fri, Feb 27, 2009 at 4:51 PM, Kyle Hamilton <aerow...@gmail.com> wrote: > use a lowercase -k, not an uppercase -K. > > -Kyle H > > On Fri, Feb 27, 2009 at 12:11 AM, xh <xiangshu...@gmail.com> wrote: > > Hi all, > > > > I want to use openssl's subcommand rc4 to do encrypt and decrypt, but I > > failed using the > > following command. > > > > # openssl rc4 -K Key -in in.txt > > iv undefined > > > > > > What I think is I can use a key to encrypt plaintext in file in.txt and > > print out the cipher text. > > I will not direct use iv(initial vector), so I don't know why it prompt > me > > the "iv undefined". > > > > Could you tell me how to use openssl rc4 command to do that task? > > Any help will be appreciated! > > > > thanks, > > -Derek > > ______________________________________________________________________ > > OpenSSL Project http://www.openssl.org > > User Support Mailing List openssl-users@openssl.org > > Automated List Manager majord...@openssl.org > > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager majord...@openssl.org > -- Best Regards, Quanhong Wang