(PHP 4, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)
mcrypt_get_block_size — 锟斤拷眉锟斤拷锟斤拷惴拷姆锟斤拷锟斤拷小
This function has been DEPRECATED as of PHP 7.1.0. Relying on this function is highly discouraged.
$cipher
) : int$cipher
, string $mode
) : int锟斤拷一锟斤拷原锟斤拷锟斤拷锟� libmcrypt 2.2.x锟斤拷 锟节讹拷锟斤拷原锟斤拷锟斤拷锟� libmcrypt 2.4.x 锟斤拷 2.5.x锟斤拷
mcrypt_get_block_size() 锟斤拷锟斤拷锟斤拷取
cipher
锟斤拷锟斤拷锟叫帮拷锟斤拷锟剿硷拷锟斤拷模式锟斤拷
锟斤拷锟斤拷锟姐法锟斤拷锟斤拷锟叫★拷锟�
mcrypt_enc_get_block_size() 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟矫o拷 锟斤拷为锟斤拷锟斤拷锟斤拷使锟斤拷 mcrypt_module_open() 锟斤拷锟斤拷锟斤拷锟斤拷锟截碉拷锟斤拷源锟斤拷
cipher
MCRYPT_ciphername
锟斤拷锟斤拷锟叫碉拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟街凤拷锟斤拷值锟斤拷锟姐法锟斤拷锟狡★拷
mode
MCRYPT_MODE_modename
锟斤拷锟斤拷锟叫碉拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟街凤拷锟斤拷锟叫碉拷一锟斤拷锟斤拷"ecb"锟斤拷"cbc"锟斤拷"cfb"锟斤拷"ofb"锟斤拷"nofb" 锟斤拷 "stream"锟斤拷
锟斤拷锟斤拷锟斤拷锟街斤拷为锟斤拷位锟侥达拷锟姐法锟侥凤拷锟斤拷锟斤拷锟捷达拷小锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE
锟斤拷
Example #1 mcrypt_get_block_size() 锟斤拷锟斤拷
锟斤拷 libmcrypt 2.4.x 锟斤拷 2.5.x 锟斤拷 锟斤拷锟绞癸拷帽锟斤拷锟斤拷锟斤拷锟�
<?php
echo mcrypt_get_block_size('tripledes', 'ecb'); // 8
?>