|
mcrypt_create_ivCreates an initialization vector (IV) from a random source Description
string mcrypt_create_iv
( int
$size
[, int $source = MCRYPT_DEV_RANDOM
] )Creates an initialization vector (IV) from a random source. The IV is only meant to give an alternative seed to the encryption routines. This IV does not need to be secret at all, though it can be desirable. You even can send it along with your ciphertext without losing security. Parameters
Return Values
Returns the initialization vector, or Changelog
Examples
Example #1 mcrypt_create_iv Example
<?php See Also
|