★ wanayoo — archive 1999 http://www.php.net/manual/function.mcrypt-cbc.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to mcrypt
Quick Reference
mcrypt
* mcrypt_get_cipher_name
* mcrypt_get_block_size
* mcrypt_get_key_size
* mcrypt_create_iv
* mcrypt_cbc
* mcrypt_cfb
* mcrypt_ecb
* mcrypt_ofb
Manual: mcrypt_cbc
View the source code for this pageSearch the site



Previous page
 mcrypt_create_iv
mcrypt_cfb 
Next page


mcrypt_cbc

(PHP3 >= 3.0.8, PHP4 )

mcrypt_cbc -- Encrypt/decrypt data in CBC mode

Description

string mcrypt_cbc (int cipher, string key, string data, int mode [, string iv])

Mcrypt_cbc() encrypts or decrypts (depending on mode) the data with cipher and key in CBC 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 optional initialization vector.

See also: mcrypt_cfb(), mcrypt_ecb(), and mcrypt_ofb().


 About Notes


Previous page
 mcrypt_create_iv
mcrypt_cfb 
Next page



Site Statistics


Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.