NAME
Encode::Base58::GMP - High speed Base58 encodings using GMP with BigInt Support
SYNOPSIS
use Encode::Base58::GMP;
# Decimal Conversion
$base58 = encode_base58( $decimal );
$decimal = decode_base58( $base58 );
# Hexidecimal (and Arbitrary Base) Conversion
$base58 = encode_base58( $hex_string, 16 );
$hex_string = decode_base58( $base58, 16 );
# Using GMP Base58 Strings ( Standard is Flickr )
$base58_as_gmp = encode_base58( $decimal, undef, 1 );
$decimal = decode_base58( $base58_as_gmp, undef, 1 );
# Convert between Flickr and GMP
$base58_as_gmp = base58_flickr_to_gmp( $base58_as_flickr );
$base58_as_flickr = base58_gmp_to_flickr( $base58_as_gmp );
DESCRIPTION
Encode::Base58 is a base58 encoder/decoder implementation using The GNU Multiple Precision Arithmetic Library (GMP) with transcoding between GMP and Flickr Base58 implementations.
The default (aka Flickr) usage excludes [0OIl] to improve human readability.
The GMP implementation uses the [0-9A-Za-v] character set.
Hex conversion useful for converting hashes such as those generated by Digest::MD5.
SEE ALSO
Encode::Base58, Encode::Base58::BigInt, Math-GMPz, Digest-MD5
AUTHOR
John Wang <john@johnwang.com>
COPYRIGHT AND LICENSE (The MIT License)
Copyright (c) 2011 John Wang <john@johnwang.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.