<?php $algorithms = mcrypt_list_algorithms("/usr/local/lib/libmcrypt"); foreach ($algorithms as $cipher) { echo "$cipher<br />\n"; }?>
The above example will produce a list with all supported algorithms in the "/usr/local/lib/libmcrypt" directory.