[Overview][Constants][Types][Classes][Index] | Reference for unit 'BlowFish' (#fcl)

# TBlowFishEncryptStream

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

On-the-fly Blowfish encryption stream

## Declaration

Source position: blowfish.pp line 68

`type TBlowFishEncryptStream = class(TBlowFishStream)`
`public`
`destructor Destroy; override;` |  | Free the TBlowFishEncryptStream
`function Write(); override;` |  | Write data to the stream
`function Seek(); override;` |  | Set the position in the stream
`procedure Flush;` |  | Flush the encryption buffer
`end;`

## Inheritance

`TBlowFishEncryptStream` |  | On-the-fly Blowfish encryption stream
`TBlowFishStream` |  | Parent class for Blowfish encryption/decryption streams
`TOwnerStream`
`TStream`
`TObject`

## Description

The TBlowFishEncryptStream provides On-the-fly Blowfish encryption: all data that is written to it is encrypted and then written to a destination stream, which must be specified when the TBlowFishEncryptStream instance is created. The encryption key must also be created when the stream instance is created.

This is a write-only stream: it is not seekable, and data can only be written to it, reading is not possible. For reading encrypted data, the TBlowFishDecryptStream stream must be used.

## See also

Create |  | Create a new instance of the TBlowFishStream class
TBlowFishDecryptStream |  | On-the-fly Blowfish decryption stream