mcrypt_decrypt
Decrypts crypttext with given parameters
WarnungThis function has been
DEPRECATED as of PHP 7.1.0. Relying on this function
is highly discouraged.
Beschreibung
string mcrypt_decrypt
( string $cipher
, string $key
, string $data
, string $mode
[, string $iv
] )
Parameter-Liste
-
cipher
-
Eine der Konstanten von MCRYPT_ciphername oder der Name eines Algorithmus als Zeichenkette.
-
key
-
The key with which the data was encrypted. If the provided key size is
not supported by the cipher, the function will emit a warning and return FALSE
-
data
-
The data that will be decrypted with the given cipher
and mode. If the size of the data is not n * blocksize,
the data will be padded with '\0'.
-
mode
-
Eine der Konstanten von MCRYPT_MODE_modename oder eine der folgenden Zeichenketten: "ecb", "cbc", "cfb", "ofb", "nofb" oder "stream".
-
iv
-
Wird für die Initialisierung in den Modi CBC, CFB oder OFB und von einigen Algorithmen im STREAM-Modus verwendet. Wird die Länge des angegebenen IV vom betriebsmodus nicht unterstützt, oder wurde kein IV angegeben aber der Betriebsmodus benötigt einen, so wird diese Funktion eine Warnung ausgeben und FALSE zurückgeben.
Rückgabewerte
Returns the decrypted data as a string Im Fehlerfall wird FALSE zurückgegeben..