Rework hex2bin and bin2hex methods.
Originally they were not working and supposed and have now been replaced with publicKeyToData, privateKeyToData, dataToPublicKey and dataToPrivate key methods which basically convert the crypto key from hex to bin notation and back, they also have a check for required key length.
(Thanks to anachronos for fixing an issue with converting them back)