decode_base64 - Decode base64 string
use MIME::Base64;
$encoded = encode_base64('Aladdin:open sesame');
$decoded = decode_base64($encoded);
RFC 1521 says that the encoded bytes must be
represented in lines of no more than 76 characters each. The second
argument to encode_base64 is the line ending sequence to use.
It defaults to
"\n". Use an empty string as second argument if you do not want the encoded
string broken into lines.
If you prefer not to import these routines into your namespace you can call them as:
use MIME::Base64 ();
$encoded = MIME::Base64::encode('Aladdin:open sesame');
$decoded = MIME::Base64::decode($encoded);
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Based on LWP::Base64 written by Martijn Koster