<commit_before>[![CPAN version](https://badge.fury.io/pl/Encode-Base58-GMP.svg)](https://badge.fury.io/pl/Encode-Base58-GMP)
[![Build Status](https://travis-ci.org/grokify/base58-gmp-perl.svg?branch=master)](https://travis-ci.org/grokify/base58-gmp-perl)
pu[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/grokify/encode-base58-gmp/master/LICENSE)

Encode::Base58::GMP
===================

High speed Base58 encoding using GMP with BigInt and MD5 support

For version 1.0 upgrades, please read the INCOMPATIBLE CHANGES section below.

## Synopsis

```perl
use Encode::Base58::GMP;

# Encode Int as Base58
encode_base58(12345);                        # => 4ER string
encode_base58('0x3039');                     # => 4ER string
encode_base58(Math::GMPz->new('0x3039'));    # => 4ER string

# Encode Int as Base58 using GMP alphabet
encode_base58(12345,'bitcoin');              # => 4fr string
encode_base58(12345,'gmp');                  # => 3cn string

# Decode Base58 as Math::GMPz Int
decode_base58('4ER');                        # => 12345 Math::GMPz object
int decode_base58('4ER');                    # => 12345 integer
<commit_msg>fix typo<commit_after>[![CPAN version](https://badge.fury.io/pl/Encode-Base58-GMP.svg)](https://badge.fury.io/pl/Encode-Base58-GMP)
[![Build Status](https://travis-ci.org/grokify/base58-gmp-perl.svg?branch=master)](https://travis-ci.org/grokify/base58-gmp-perl)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/grokify/encode-base58-gmp/master/LICENSE)

Encode::Base58::GMP
===================

High speed Base58 encoding using GMP with BigInt and MD5 support

For version 1.0 upgrades, please read the INCOMPATIBLE CHANGES section below.

## Synopsis

```perl
use Encode::Base58::GMP;

# Encode Int as Base58
encode_base58(12345);                        # => 4ER string
encode_base58('0x3039');                     # => 4ER string
encode_base58(Math::GMPz->new('0x3039'));    # => 4ER string

# Encode Int as Base58 using GMP alphabet
encode_base58(12345,'bitcoin');              # => 4fr string
encode_base58(12345,'gmp');                  # => 3cn string

# Decode Base58 as Math::GMPz Int
decode_base58('4ER');                        # => 12345 Math::GMPz object
int decode_base58('4ER');                    # => 12345 integer

{'fraction_non_alphanumeric': 0.16505263157894737, 'fraction_numerical': 0.06821052631578947, 'mean_word_length': 3.335766423357664, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4565485', 'n_tokens_mistral': 924, 'n_tokens_neox': 781, 'n_words': 145}