sub yubikey_hex2bin { my $in = $_[0]; my $out = ""; for(my $k=0;$k## # hex2bin $bin = pack "H*", $hex; # bin2hex $hex = unpack "H*", $bin;