Encode::Base58::GMP 0.07

Оценок пока нет — будьте первым

Описание

Encode::Base58::GMP 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) implementation is a modification of the [0-9a-zA-Z] Base62 alphabet excluding [0OIl] to improve human readability. The GMP implementation uses the [0-9A-Za-v] alphabet. A md5_base58 function is included to provide MD5 digests. SYNOPSIS use Encode::Base58::GMP; # Encode Int as Base58 encode_base58(12345); # => 4ER string encode_base58('0x3039'); # => 4ER string encode_base58(Math::GPMz->new('0x3039')); # => 4ER string # Encode Int as Base58 using GMP alphabet 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 # Decode Base58 as Math::GMPz Int using GMP alphabet decode_base58('3cn','gmp'); # => 12345 Math::GMPz object # MD5 Base58 Digest md5_base58('foo@bar.com'); # => w6fdCRXnUXyz7EtDn5TgN9 # Convert between Flickr and GMP base58_flickr_to_gmp('123456789abcdefghijk') # => 0123456789ABCDEFGHIJ base58_gmp_to_flickr('0123456789ABCDEFGHIJ') # => 123456789abcdefghijk Requirements:

Информация о программе

  • Категория: Другое
  • ОС: Linux
  • Скачиваний: 0
Скачать