PHP Manual
Prev |  | Next

# mcrypt_ofb

mcrypt_ofb -- Encrypt/decrypt data in OFB mode

## Description

`int mcrypt_ofb`(int cipher, string key, string data, int mode, string iv);

mcrypt_ofb() encrypts or decrypts (depending on `mode`) the `data` with `cipher` and `key` in OFB cipher mode and returns the resulting string.

`cipher` is one of the MCRYPT_ciphername constants.

`key` is the key supplied to the algorithm. It must be kept secret.

`data` is the data which shall be encrypted/decrypted.

`mode` is MCRYPT_ENCRYPT or MCRYPT_DECRYPT.

`iv` is the initialization vector.

See also: mcrypt_cbc(), mcrypt_cfb(), mcrypt_ecb()

Prev | Home | Next
mcrypt_ecb | Up | filePro functions