3DES 128bit A variant of DES, Triple-DES or 3DES is based on using DES three times (an encrypt-decrypt-encrypt sequence with three different, unrelated keys). Many people consider Triple-DES to be much safer than plain DES.

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

Syntax

C#
[SerializableAttribute]
public class Stream3DES : StreamAlgorithm
Visual Basic
<SerializableAttribute> _
Public Class Stream3DES _
	Inherits StreamAlgorithm
Visual C++
[SerializableAttribute]
public ref class Stream3DES : public StreamAlgorithm

Examples

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

System..::..Object
  LLCryptoLib.Crypto..::..StreamAlgorithm
    LLCryptoLib.Crypto..::..Stream3DES

See Also