PHP » GoLang |
login |
register |
about
|
mcrypt_encrypt(PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0) mcrypt_encrypt — Encrypts plaintext with given parameters Warning
This function has been DEPRECATED as of PHP 7.1.0. Relying on this function is highly discouraged. Description
string mcrypt_encrypt
( string
$cipher
, string $key
, string $data
, string $mode
[, string $iv
] )Encrypts the data and returns it. Parameters
Return Values
Returns the encrypted data as a string or Changelog
Examples
Example #1 mcrypt_encrypt() Example
<?php The above example will output: Key size: 32 ENJW8mS2KaJoNB5E5CoSAAu0xARgsR1bdzFWpEn+poYw45q+73az5kYi4j+0haevext1dGrcW8Qi59txfCBV8BBj3bzRP3dFCp3CPQSJ8eU= This string was AES-256 / CBC / ZeroBytePadding encrypted. See Also
|
more
Recently updated
more
Most requested
|