PHP » GoLang |
login |
register |
about
|
GoLang mcrypt_create_iv
request it (424)
GoLang replacement for PHP's mcrypt_create_iv
[edit | history]
mcrypt_create_iv(PHP 4, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0) mcrypt_create_iv — Creates an initialization vector (IV) from a random source Warning
This function was DEPRECATED in PHP 7.1.0, and REMOVED in PHP 7.2.0. Alternatives to this function include: Description
string mcrypt_create_iv
( int
$size
[, int $source = MCRYPT_DEV_URANDOM
] )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
|
more
Recently updated
more
Most requested
more
Last requests
|