StreamBlowfish implements Blowfish for streams.
Key len = 16 byte
Block len = 8 byte
Namespace: LLCryptoLib.CryptoAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
| C# |
|---|
[SerializableAttribute] public class StreamBlowfish : StreamAlgorithm |
| Visual Basic |
|---|
<SerializableAttribute> _ Public Class StreamBlowfish _ Inherits StreamAlgorithm |
| Visual C++ |
|---|
[SerializableAttribute] public ref class StreamBlowfish : public StreamAlgorithm |
Examples
Perform a Blowfish stream encryption.
CopyC#
// Set encryption algorithm IStreamAlgorithm encryptAlgo = new StreamBlowfish(); 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);