Philip Gwyn > Convert-zBase32 > Convert::zBase32

Download:
Convert-zBase32-0.0201.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.0201   Source  

NAME ^

Convert::zBase32 - Convert human-oriented base-32 encoded strings

SYNOPSIS ^

    use Convert::zBase32;

    my $id = encode_zbase32 $string;
    my $back = decode_zbase32 $string;

DESCRIPTION ^

zBase32 is similar to Base64, except that the output alphabet and ordering is chosen to be more familiar to humans. It uses the following 7-bit safe 32 element alphabet:

    y b n d r f g 8 e j k m c p q x o t 1 u w i s z a 3 4 5 h 7 6 9

The alphabet was permuted to make the more commonly occuring characters also be those that were thought to be easier to read, write, speak, and remember. For example, encoding of hello in zBase32 is em3ags7p, which almost looks like one of those unitelligable SMSes your daughter sends you.

encode_zbase32

    $zb = encode_zbase32( $string );

Convert a string to zBase32.

decode_zbase32

    $string = decode_zbase32( $zb );

Convert a string from zBase32.

encode_base32

    $b = encode_base32( $string );

Convert a string to "Base32".

decode_base32

    $string = decode_base32( $b );

Convert a string from "Base32".

Base32 ^

Base32 is similar to zBase32, but uses the following alphabet:

    a b c d e f g h i j k l m n o p 
    q r s t u v w x y z 2 3 4 5 6 7

SEE ALSO ^

http://zooko.com/repos/z-base-32/base32/DESIGN

AUTHOR ^

Philip Gwyn, <gwyn-at-cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2007-2009 by Philip Gwyn

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: