RC4 Stream Cipher Library 1.00 ============================== Alvaro Redondo http://www.sevillaonline.com/ActiveX This library will encrypt information using the RC4 stream cipher by RSA. It also has a built-in system to export the encrypted information to a more appropiate format to travel through network network or modem connections, including e-mail. IMPORTANT NOTICE: The RC4 algorythm is owned by RSA. If you want to use in a commercial program, you will have to get a license to use it. Go to http://www.rsa.com for more information. IMPORTANT NOTICE ABOUT RESTRICTIONS ON IMPORTING STRONG ENCRYPTION ALGORYTHMS IN SOME COUNTRIES: This encryption algorythm is a stream cipher that uses a length-variable key, with no limited length. Due to this, some people might not be allowed by the goverments of their countries to download this library and make use of it. Check your local restrictions. Spanish citizens don't have restrictions of any kind over encryption algorythms, so please enjoy and make use of this library. Anyways, no information is saved about where this library goes to when people download it, neither on who comes to this web. This doesn't mean, at all, that I'm inviting you not to follow the law in your country, if it is the case. Methods: -------- - Encrypt (Text As String, Key As String) As String. Encrypts the information in Text using Key as the key, and returns the encrypted text. - Decrypt (Text As String, Key As String) As String. Decrypts the ciphertext in Text using Key as the key, and returns the plain text. - AscEncrypt (Text As String, Key As String) As String. The same as 'Encrypt', but the returned text is composed by standard ASCII characters. The result is like 1/3 longer than in the 'Encrypt' function. - AscDecrypt (Text As String, Key As String) As String. The same as 'Decrypt', but in 'Text' you have to put the result of the 'AscEncrypt' function. The 'Encrypt' and 'Decrypt' functions do the very same process. This means that you can decrypt a text using the 'Encrypt' function and it will work. The RC4 algorythm works like that. It doesn't happen the same way with the Asc??? functions.