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

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