00001 <?php 00032 class Md5Filter implements FilterInterface 00033 { 00041 public static function execute ($s, $options) 00042 { 00043 if (isset($options['binary']) && $options['binary'] == 'true') { 00044 return md5((string) $s, true); 00045 } else { 00046 return md5((string) $s); 00047 } 00048 } 00049 }