PHP » GoLang |
login |
register |
about
|
GoLang mcrypt_module_open
request it (557)
GoLang replacement for PHP's mcrypt_module_open
[edit | history]
mcrypt_module_open(PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0) mcrypt_module_open — Opens the module of the algorithm and the mode to be used Warning
This function has been DEPRECATED as of PHP 7.1.0. Relying on this function is highly discouraged. Description
resource mcrypt_module_open
( string
$algorithm
, string $algorithm_directory
, string $mode
, string $mode_directory
)
This function opens the module of the algorithm and the mode to be used.
The name of the algorithm is specified in algorithm, e.g. "twofish" or is
one of the Parameters
Return Values
Normally it returns an encryption descriptor, or Examples
Example #1 mcrypt_module_open() Examples
<?php The first line in the example above will try to open the DES cipher from the default directory and the ECB mode from the directory /usr/lib/mcrypt-modes. The second example uses strings as name for the cipher and mode, this only works when the extension is linked against libmcrypt 2.4.x or 2.5.x.
Example #2 Using mcrypt_module_open() in encryption
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|