Rc4 Function

Top  Previous  Next

Function:

Encrypts/decrypts the data stream according to the RC4 algorithm.

Syntax:

rc4(byref key as string, skip as word, byref data as string) as string

Returns:

Processed data.

See Also:

aes128enc, aes128dec

 


Part

Description

key

Encryption key, can have any length.

skip

The number of "skip" iterations. These are additional iterations added past the standard "key scheduling algorithm". Set this argument to 0 to obtain standard encryption results compatible with other systems.

data

Data to encrypt/decrypt.

Details

With RC4 algorithm, the same function is used both for encrypting and decrypting the data.