Home > PHP > Function > Mcrypt > mcrypt_cfb()

mcrypt_cfb()

mcrypt_cfb - Encrypt/decrypt data in CFB mode

Syntax

string mcrypt_cfb (int $cipher, string $key, string $data, int $mode, string $iv, string $cipher, string $key, string $data, int $mode, string $iv, int $cipher, string $key, string $data, int $mode, string $iv, string $cipher, string $key, string $data, int $mode, string $iv)

Arguments

  • cipher - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • key - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • data - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • mode - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • iv - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • cipher - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • key - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • data - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • mode - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • iv - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • cipher - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • key - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • data - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • mode - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • iv - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • cipher - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • key - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • data - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • mode - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
  • iv - The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.

Description

The first prototype is when linked against libmcrypt 2.2.x, the second when linked against libmcrypt 2.4.x or higher. The mode should be either MCRYPT_ENCRYPT or MCRYPT_DECRYPT.

Version

PHP 4, 5

Return value