Answer the question
In order to leave comments, you need to log in
Encryption filters in PHP, how common are they among hosters?
I wanted to use encryption filters for encryption in my backup script. It seems that the test script worked so well on a local computer on Windows (the data was compressed and encrypted on the fly), but there were no encryption filters on two working hostings, despite the fact that the mcrypt functions themselves work on them.
You can look for yourself
<?php
echo 'PHP ' . PHP_VERSION . ', mcrypt filter - <b>' .
(in_array('mcrypt.*', stream_get_filters()) ? 'found': 'not found') . '</b>';
?>
Answer the question
In order to leave comments, you need to log in
php.net/ChangeLog-5.php#5.3.3
Added stream filter support to mcrypt extension (ported from mcrypt_filter). (stas)
[email protected]:~$ php test.php
PHP 5.3.3-7+squeeze3, mcrypt filter - found
Virtually free hosting, by the way %)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question