TBlowFishStream.Create¶
Create a new instance of the TBlowFishStream class.
Declaration¶
Source position: blowfish.pp line 68
public
constructor Create(AKey: TBlowFishKey; AKeySize: Byte; Dest: TStream)
; virtual; overload; overload;
constructor Create(const KeyPhrase: string; Dest: TStream); overload; overload;
Description¶
Create initializes a new instance of TBlowFishStream, and creates an internal instance of TBlowFish using AKey and AKeySize. The Dest stream is stored so the descendent classes can refer to it.
Do not create an instance of TBlowFishStream directly. Instead create one of the descendent classes TBlowFishEncryptStream or TBlowFishDecryptStream.
The overloaded version with the KeyPhrase string argument is used for easy access: it computes the Blowfish key from the given string.
See also¶
| Name | Description |
|---|---|
| TBlowFishEncryptStream | On-the-fly Blowfish encryption stream. |
| TBlowFishDecryptStream | On-the-fly Blowfish decryption stream. |
| TBlowFish | Class implementing Blowfish encryption/decryption. |