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

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