rename hex2bin() to yubi_hex2bin() to avoid conflict on php 5.4
stop using deprecated mcrypt_ecb(), switch to mdecrypt_generic()