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

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