mcrypt_decrypt

(PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)

mcrypt_decrypt使锟矫革拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷

Warning

This function has been DEPRECATED as of PHP 7.1.0 and REMOVED as of PHP 7.2.0. Relying on this function is highly discouraged.

说锟斤拷

mcrypt_decrypt ( string $cipher , string $key , string $data , string $mode [, string $iv ] ) : string

锟斤拷锟斤拷 data 锟斤拷锟斤拷锟斤拷锟斤拷锟侥★拷

锟斤拷锟斤拷

cipher

MCRYPT_ciphername 锟斤拷锟斤拷锟叫碉拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟街凤拷锟斤拷值锟斤拷锟姐法锟斤拷锟狡★拷

key

锟斤拷锟捷硷拷锟斤拷锟斤拷钥锟斤拷 锟斤拷锟斤拷锟皆匡拷锟斤拷炔锟斤拷羌咏锟斤拷锟斤拷惴拷芄锟街э拷值锟斤拷锟叫э拷锟斤拷龋锟� 锟斤拷么锟斤拷锟斤拷锟斤拷锟斤拷娌拷曳锟斤拷锟� FALSE

data

要使锟矫革拷锟斤拷锟斤拷 cipher 锟斤拷 mode 锟斤拷锟杰碉拷锟斤拷锟捷★拷 锟斤拷锟斤拷锟斤拷荽锟叫★拷锟斤拷锟� n * 锟斤拷锟斤拷锟叫★拷锟斤拷锟斤拷锟斤拷锟斤拷追锟斤拷 '\0' 锟斤拷锟斤拷锟诫。

mode

MCRYPT_MODE_modename 锟斤拷锟斤拷锟叫碉拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟街凤拷锟斤拷锟叫碉拷一锟斤拷锟斤拷"ecb"锟斤拷"cbc"锟斤拷"cfb"锟斤拷"ofb"锟斤拷"nofb" 锟斤拷 "stream"锟斤拷

iv

Used for the initialization in CBC, CFB, OFB modes, and in some algorithms in STREAM mode. If the provided IV size is not supported by the chaining mode or no IV was provided, but the chaining mode requires one, the function will emit a warning and return FALSE.

锟斤拷锟斤拷值

锟斤拷锟街凤拷锟斤拷锟斤拷式锟斤拷锟截斤拷锟杰猴拷锟斤拷锟斤拷荩锟� 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE锟斤拷

锟斤拷锟斤拷锟斤拷志

锟芥本 说锟斤拷
5.6.0 锟斤拷锟劫斤拷锟斤拷锟斤拷效锟斤拷锟饺碉拷 key and iv 锟斤拷锟斤拷锟斤拷 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟叫э拷锟斤拷锟� mcrypt_decrypt() 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷娌拷曳锟斤拷锟� FALSE锟斤拷 之前锟芥本锟叫o拷锟斤拷锟节筹拷锟饺诧拷锟斤拷锟斤拷锟皆匡拷统锟绞硷拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 '\0' 使锟斤拷锏斤拷锟叫э拷锟斤拷取锟�

锟轿硷拷

  • mcrypt_encrypt() - 使锟矫革拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷