PHP.nl

mcrypt_decrypt

mcrypt_decrypt

Decrypts crypttext with given parameters

 **mcrypt_decrypt** string $cipher string $key string $data string $mode string $iv

Decrypts the and returns the unencrypted data. data

cipher``keyThe 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 and . If the size of the data is not n * blocksize, the data will be padded with ''. cipher``mode``\0

mode``ivReturns the decrypted data as a string return.falseforfailure.

mcrypt_encrypt