1Math::Base85(3) User Contributed Perl Documentation Math::Base85(3)
2
3
4
6 Math::Base85 - Perl extension for base 85 numbers, as referenced by RFC
7 1924
8
10 use Math::Base85;
11
12 $bigint = from_base85($number);
13 $b85str = to_base85($bigint);
14
16 RFC 1924 describes a compact, fixed-size representation of IPv6
17 addresses which uses a base 85 number system. This module handles some
18 of the uglier details of it.
19
20 The base 85 numbers (from 0 to 84) are as follows:
21
22 0..9 A..Z a..z ! # $ % & ( ) * + - ; < = > ? @ ^ _ ` { | } ~
23
24 At the moment, there's not much in this module. But it should be
25 sufficient for the purposes of RFC 1924.
26
27 This module has a variable called $Math::Base85::base85_digits, which
28 is a string containing the digits of the base 85 alphabet from lowest
29 (0) to highest (~), in that order.
30
31 Additionally, the following two functions are defined for general use.
32 (They will be exported upon request.)
33
35 Parameters
36 A string composed of valid base 85 digits.
37
38 Returns
39 A "Math::BigInt" object representing the number.
40
42 Parameters
43 A "Math::BigInt" object.
44
45 Returns
46 A string of base 85 digits representing the number.
47
49 · Tony Monroe <tmonroe+perl@nog.net>
50
51 · Paul Cochrane <paul@liekut.de> (maintainer)
52
54 Copyright (c) 2001-2002, Tony Monroe <tmonroe+perl@nog.net>. All rights
55 reserved. Copyright (c) 2017, Paul Cochrane <paul@liekut.de>. All
56 rights reserved.
57
58 You may use this software under the same terms as Perl itself.
59
61 perl(1).
62
63
64
65perl v5.30.0 2019-07-26 Math::Base85(3)