Hello everyone
I am looking for an alternative Swift method to PHP pack()
method to return the same value for this code line
echo pack('H*', sprintf("%02X",1));
Based on w3schools
echo base64_encode(pack('H*', sprintf("%02X",1)));
prints AQ== and
echo base64_encode(sprintf("%02X",1));
prints MDE=