in reply to need base64 utility in pure perl

It shouldn't be that hard to take the spec (sec 6.8 of the RFC) and reimplement it yourself in pure Perl. You can even look at the source for MIME::Base64 for an actual code implementation.