Create a new StreamARC42048 object
Namespace: LLCryptoLib.CryptoAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public static StreamARC42048 ArcFour2048 { get; } |
Visual Basic |
---|
Public Shared ReadOnly Property ArcFour2048 As StreamARC42048 Get |
Visual C++ |
---|
public: static property StreamARC42048^ ArcFour2048 { StreamARC42048^ get (); } |
Field Value
A 2048 bit ARC4 object
Examples
Stream Encryption with DES
CopyC#

// Set encryption algorithm IStreamAlgorithm encryptAlgo = StreamAlgorithmFactory.ArcFour2048; 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);