note 44783 deleted from ref.mcrypt by danbrown
| From: | danbrown@php.net | Date: | Mon, 13 Dec 2010 16:27:20 +0000 |
| Subject: | note 44783 deleted from ref.mcrypt by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-174871@lists.php.net to get a copy of this message | ||
Note Submitter: wagner at cesnet dot cz
----
I have another comment to the script submitted by robert at peakepro dot com. He uses deprecated
function mcrypt_generic_end which also closes the module. Subsequent mcrypt_module_close then
complains about invalid resource. Moreover, not all combinations of algorith and mode are
compatible. It is necessary to check the return value from mcrypt_module_open in order to find
whether the module can be open for selected combination. My script also displays some useful
information. You can find the full source at my site http://icebearsoft.euweb.cz/php/