in PHP I have this code to convert a string to binary and encode to Base 64:
<?php
$value = pack('H*', "b4h3h347h38f3g734ff");
echo base64_encode($value);
But how I can do that in Javascript ?
Thank you!
in PHP I have this code to convert a string to binary and encode to Base 64:
<?php
$value = pack('H*', "b4h3h347h38f3g734ff");
echo base64_encode($value);
But how I can do that in Javascript ?
Thank you!