ARC4 128bit. ARC4 is short for `Alleged RC4'. The real RC4 algorithm is proprietary to RSA Data Security Inc. In September 1994, someone posted C code to both the Cypherpunks mailing list and to the Usenet newsgroup @code{sci.crypt}, claiming that it implemented the RC4 algorithm. This posted code is what it being called Alleged RC4, or ARC4 for short. ARC4 is a private-key cipher; the same key is used to both encrypt and decrypt.

Namespace: LLCryptoLib.Crypto
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
[SerializableAttribute]
public class StreamARC4 : StreamARC4Base
Visual Basic
<SerializableAttribute> _
Public Class StreamARC4 _
	Inherits StreamARC4Base
Visual C++
[SerializableAttribute]
public ref class StreamARC4 : public StreamARC4Base

Examples

CopyC#
// Set encryption algorithm
IStreamAlgorithm encryptAlgo = new StreamARC4();
StreamCrypter encrypter = new StreamCrypter(encryptAlgo);
// Set symmetric password
encrypter.GenerateKeys("littlelitesoftware");
// Encrypt
encrypter.EncryptDecrypt(rndFile.FullName, encryptedFile, true, null);
Console.WriteLine("File encrypted into " + encryptedFile);

Inheritance Hierarchy

System..::..Object
  LLCryptoLib.Crypto..::..StreamAlgorithm
    LLCryptoLib.Crypto..::..StreamARC4Base
      LLCryptoLib.Crypto..::..StreamARC4

See Also