Help for this page

Select Code to Download


  1. or download this
    sub yubikey_hex2bin
    {
    ...
            $out =~ s/ /0/g;        # this is a hack.. not sure why it has
    + to be like this...
            return $out;
    }
    
  2. or download this
    # hex2bin
    $bin = pack   "H*", $hex;
    
    # bin2hex
    $hex = unpack "H*", $bin;