Create a new StreamDES object

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

Syntax

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

Field Value

A DES object

Examples

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