Create a new StreamARC4 object

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

Syntax

C#
public static StreamARC4 ArcFour { get; }
Visual Basic
Public Shared ReadOnly Property ArcFour As StreamARC4
	Get
Visual C++
public:
static property StreamARC4^ ArcFour {
	StreamARC4^ get ();
}

Field Value

A 128 bit ARC4 object

Examples

Stream Encryption with DES
CopyC#
// Set encryption algorithm
IStreamAlgorithm encryptAlgo = StreamAlgorithmFactory.ArcFour;
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);

See Also