If I use the code below to encrypt and decrypt it doesn't always produce the 
same results.  The majority of the time it works but I can't find anything 
explaining why it doesn't work 100% of the time.

void EnDe(unsigned char *buf)
{
    RC4_KEY key;
    unsigned char keys[17] = "s1fuk8wfe4hj9ksi";
    
    RC4_set_key(&key,keys[0],&(keys[1]));

    RC4(&key,strlen((const char *)buf), buf, buf);
    
}
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to