I have a series of binary strings, such as:
$str = "00000001001000110100010101100111100010011010101111001101111011
I want to create a base64 representation of this for compression and storage in text format.
I've tried using Mime::Base64 with
However, with that the result is 13 characters long starting from my 64 bit example. I'd rather get compression down to 4 characters in this case. How can I go about that? Also, is there a good solution for a base32 representation?
Update: As Grandfather politely points out, I am an idiot. :-). The minimum would be 11, not 4.