implemented an actual bin2hex method without using sscanf and removed bin2base64 since it's unneccessary