MIME::Base32(3pm)

MIME::Base323pm

Base32 encoder and decoder

Usage

    #!/usr/bin/env perl
    use strict;
    use warnings;
    use MIME::Base32;
    my $encoded = encode_base32('Aladdin: open sesame');
    my $decoded = decode_base32($encoded);

Overview

This module is for encoding/decoding data much the way that MIME::Base64 does.

Prior to version 1.0, MIME::Base32 used the "base32hex" (or "[0-9A-V]") encoding and decoding methods by default. If you need to maintain that behavior, please call "encode_base32hex" or "decode_base32hex" functions directly.

Now, in accordance with RFC-3548, Section 5 <https://tools.ietf.org/html/rfc3548#section-5>, MIME::Base32 uses the "encode_base32" and "decode_base32" functions by default.

Functions

The following primary functions are provided:

decode

Synonym for "decode_base32"

decode_rfc3548

Synonym for "decode_base32"

decode_base32

    my $string = decode_base32($encoded_data);

Decode some encoded data back into a string of text or binary data.

decode_09AV

Synonym for "decode_base32hex"

decode_base32hex

    my $string_or_binary_data = MIME::Base32::decode_base32hex($encoded_data);

Decode some encoded data back into a string of text or binary data.

encode

Synonym for "encode_base32"

encode_rfc3548

Synonym for "encode_base32"

encode_base32

    my $encoded = encode_base32("some string");

Encode a string of text or binary data.

encode_09AV

Synonym for "encode_base32hex"

encode_base32hex

    my $encoded = MIME::Base32::encode_base32hex("some string");

Encode a string of text or binary data. This uses the "hex" (or "[0-9A-V]") method.

Support

You can find documentation for this module with the perldoc command.

    perldoc MIME::Base32

You can also look for information at:

•

RT: CPAN's request tracker

<https://rt.cpan.org/Dist/Display.html?Name=MIME-Base32>

•

AnnoCPAN: Annotated CPAN documentation

<http://annocpan.org/dist/MIME-Base32>

•

MetaCPAN

<https://metacpan.org/release/MIME-Base32>

Releases

12 releases since Debian 3.1 (Sarge); the text changed 7 times.

  1. 3.1–5.0
  2. 6.0
  3. 7–8
  4. 9
  5. 10
  6. 11
  7. 12–13
  8. Arch

Authors

Jens Rehsack - <[email protected]> - Current maintainer

Chase Whitener

Daniel Peder - sponsored by Infoset s.r.o., Czech Republic
- <[email protected]> http://www.infoset.com - Original author

Bugs

Before reporting any new issue, bug or alike, please check <https://rt.cpan.org/Dist/Display.html?Queue=MIME-Base32>, <https://github.com/perl5-utils/MIME-Base32/issues> or <https://github.com/perl5-utils/MIME-Base32/pulls>, respectively, whether the issue is already reported.

Please report any bugs or feature requests to "bug-mime-base32 at rt.cpan.org", or through the web interface at <https://rt.cpan.org/NoAuth/ReportBug.html?Queue=MIME-Base32>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

Any and all criticism, bug reports, enhancements, fixes, etc. are appreciated.

From perl-mime-base32 1.303-13 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.