文字

mcrypt_ecb

(PHP 4, PHP 5)

mcrypt_ecb已废弃:使用 ECB 模式加解密数据

说明

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

第一个原型是针对 libmcrypt 2.2.x 的, 第二个原型是针对 libmcrypt 2.4.x 及更高版本的。 mode 可选值为: MCRYPT_ENCRYPT MCRYPT_DECRYPT

本函数不应再使用了, 请使用 mcrypt_generic() mdecrypt_generic() 作为替代。

Warning

This function was DEPRECATED in PHP 5.5.0, and REMOVED as of PHP 7.0.0.

上一篇: 下一篇: