Acme::Collector64 - Yet Another Base64?
use utf8; use Acme::Collector64; my $japanese64 = Acme::Collector64->new( index_table => 'あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもらりるれろがぎぐげござじずぜぞばびぶべぼぱぴぷぺぽやゆよわ=', ); $japanese64->encode('Hello, world!'); $japanese64->decode('てきにごふきやごけくほずへれぞりけち==');
Let's make your own Base64!
Create new instance of Acme::Collector64.
This is user definable index table. You have to define 65-character string.
index_table by default is "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".
This function takes binary string to encode and return the encoded string.
This function takes text string to decode and return the decoded data.
Takumi Akiyama <t.akiym at gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Acme::Collector64, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::Collector64
CPAN shell
perl -MCPAN -e shell install Acme::Collector64
For more information on module installation, please visit the detailed CPAN module installation guide.