1MIME::Base32(3) User Contributed Perl Documentation MIME::Base32(3)
2
3
4
6 MIME::Base32 - Base32 encoder and decoder
7
9 #!/usr/bin/env perl
10 use strict;
11 use warnings;
12 use MIME::Base32;
13
14 my $encoded = encode_base32('Aladdin: open sesame');
15 my $decoded = decode_base32($encoded);
16
18 This module is for encoding/decoding data much the way that
19 MIME::Base64 does.
20
21 Prior to version 1.0, MIME::Base32 used the "base32hex" (or "[0-9A-V]")
22 encoding and decoding methods by default. If you need to maintain that
23 behavior, please call "encode_base32hex" or "decode_base32hex"
24 functions directly.
25
26 Now, in accordance with RFC-3548, Section 5
27 <https://tools.ietf.org/html/rfc3548#section-5>, MIME::Base32 uses the
28 "encode_base32" and "decode_base32" functions by default.
29
31 The following primary functions are provided:
32
33 decode
34 Synonym for "decode_base32"
35
36 decode_rfc3548
37 Synonym for "decode_base32"
38
39 decode_base32
40 my $string = decode_base32($encoded_data);
41
42 Decode some encoded data back into a string of text or binary data.
43
44 decode_09AV
45 Synonym for "decode_base32hex"
46
47 decode_base32hex
48 my $string_or_binary_data = MIME::Base32::decode_base32hex($encoded_data);
49
50 Decode some encoded data back into a string of text or binary data.
51
52 encode
53 Synonym for "encode_base32"
54
55 encode_rfc3548
56 Synonym for "encode_base32"
57
58 encode_base32
59 my $encoded = encode_base32("some string");
60
61 Encode a string of text or binary data.
62
63 encode_09AV
64 Synonym for "encode_base32hex"
65
66 encode_base32hex
67 my $encoded = MIME::Base32::encode_base32hex("some string");
68
69 Encode a string of text or binary data. This uses the "hex" (or
70 "[0-9A-V]") method.
71
73 Jens Rehsack - <rehsack@cpan.org> - Current maintainer
74
75 Chase Whitener
76
77 Daniel Peder - sponsored by Infoset s.r.o., Czech Republic
78 - <Daniel.Peder@InfoSet.COM> http://www.infoset.com - Original author
79
81 Before reporting any new issue, bug or alike, please check
82 <https://rt.cpan.org/Dist/Display.html?Queue=MIME-Base32>,
83 <https://github.com/perl5-utils/MIME-Base32/issues> or
84 <https://github.com/perl5-utils/MIME-Base32/pulls>, respectively,
85 whether the issue is already reported.
86
87 Please report any bugs or feature requests to "bug-mime-base32 at
88 rt.cpan.org", or through the web interface at
89 <https://rt.cpan.org/NoAuth/ReportBug.html?Queue=MIME-Base32>. I will
90 be notified, and then you'll automatically be notified of progress on
91 your bug as I make changes.
92
93 Any and all criticism, bug reports, enhancements, fixes, etc. are
94 appreciated.
95
97 You can find documentation for this module with the perldoc command.
98
99 perldoc MIME::Base32
100
101 You can also look for information at:
102
103 · RT: CPAN's request tracker
104
105 <https://rt.cpan.org/Dist/Display.html?Name=MIME-Base32>
106
107 · AnnoCPAN: Annotated CPAN documentation
108
109 <http://annocpan.org/dist/MIME-Base32>
110
111 · MetaCPAN
112
113 <https://metacpan.org/release/MIME-Base32>
114
116 Copyright (c) 2003-2010 Daniel Peder. All rights reserved. Copyright
117 (c) 2015-2016 Chase Whitener. All rights reserved. Copyright (c) 2016
118 Jens Rehsack. All rights reserved.
119
120 This library is free software; you can redistribute it and/or modify it
121 under the same terms as Perl itself.
122
124 MIME::Base64, RFC-3548 <https://tools.ietf.org/html/rfc3548#section-5>
125
126
127
128perl v5.30.0 2019-07-26 MIME::Base32(3)