PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mdecrypt_generic> <mcrypt_module_self_test
Last updated: Fri, 18 Jul 2008

view this page in

mcrypt_ofb

(PHP 4, PHP 5)

mcrypt_ofb — Encripta/desencripta datos en modo OFB

Descripción

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

mcrypt_ofb() encripta o desencripta (dependiendo de mode ) los datos data con el cifrado cipher y la clave key en el modo de cifrado OFB y devuelve la cadena resultante.

El parámetro cipher es una de las constantes con nombre MCRYPT_nombrecifrado.

key es la clave suministrada al algoritmo. Debe guardarse en secreto.

data son los datos que serán encriptados/desencriptados.

mode es MCRYPT_ENCRYPT o MCRYPT_DECRYPT.

iv es el vector de inicialización.

Ver también: mcrypt_cbc(), mcrypt_cfb(), mcrypt_ecb()



add a note add a note User Contributed Notes
mcrypt_ofb
There are no user contributed notes for this page.

mdecrypt_generic> <mcrypt_module_self_test
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites