getOptions($options, $cfg['DefaultTransformations']['Hex']); $options[0] = intval($options[0]); if ($options[0] < 1) { return bin2hex($buffer); } else { return chunk_split(bin2hex($buffer), $options[0], ' '); } } /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ /** * Gets the transformation name of the specific plugin * * @return string */ public static function getName() { return "Hex"; } }