mcrypt_enc_get_block_size

(PHP 4 >= 4.0.2, PHP 5)

mcrypt_enc_get_block_sizeReturns the blocksize of the opened algorithm

Descrição

int mcrypt_enc_get_block_size ( resource $td )

Gets the blocksize of the opened algorithm.

Parâmetros

td

The encryption descriptor.

Valor Retornado

Returns the block size of the specified algorithm in bytes.



User Contributed Notes
mcrypt_enc_get_block_size
matthew at euphoriccode dot com
28-Sep-2011 10:14
Let us say that we had an algorithm that was called euphoric_love, we would do the following to attain its integer representing value:

$magnitude  = mcrypt_get_block_size(MCRYPT_EuphoricLOVE);

That in turn would return an integer representing the size of the block.

Job Done.

Matthew

mcrypt_enc_get_iv_size> <mcrypt_enc_get_algorithms_name
Last updated: Fri, 24 Feb 2012