Encryption Algorithm. A StreamAlgorithm class indicates the algorithm to be used in Stream Encryption. StreamCrypter

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

Syntax

C#
[SerializableAttribute]
public abstract class StreamAlgorithm : IStreamAlgorithm
Visual Basic
<SerializableAttribute> _
Public MustInherit Class StreamAlgorithm _
	Implements IStreamAlgorithm
Visual C++
[SerializableAttribute]
public ref class StreamAlgorithm abstract : IStreamAlgorithm

Examples

CopyC#
// Set encryption algorithm
StreamAlgorithm encryptAlgo = new StreamAES256();
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

See Also