1docs::api::APR::Base64(U3s)er Contributed Perl Documentatdioocns::api::APR::Base64(3)
2
3
4

NAME

6       APR::Base64 - Perl API for APR base64 encoding/decoding functionality
7

Synopsis

9         use APR::Base64 ();
10
11         my $clear   = "foo"
12         my $encoded = APR::Base64::encode($clear);
13         my $decoded = APR::Base64::decode($encoded);
14         my $len_enc = APR::Base64::encode_len(length $clear);
15

Description

17       "APR::Base64" provides the access to APR's base64 encoding and decoding
18       API.
19

API

21       "APR::Base64" provides the following functions and/or methods:
22
23   "decode"
24       Decode a base64 encoded string
25
26         $decoded = decode($encoded);
27
28       arg1: $encoded ( string )
29           The encoded string.
30
31       ret: $decoded ( string )
32           The decoded string.
33
34       since: 2.0.00
35
36   "encode"
37       Encode a string to base64
38
39         $encoded = encode($clear);
40
41       arg1: $clear ( string )
42           The unencoded string.
43
44       ret: $encoded ( string )
45           The encoded string.
46
47       since: 2.0.00
48
49   "encode_len"
50       Given the length of an unencoded string, get the length of the encoded
51       string.
52
53         $len_enc = encode_len($len_clear);
54
55       arg1: $len_clear ( integer )
56           the length of an unencoded string.
57
58       ret: $len_enc ( integer )
59           the length of the string after it is encoded
60
61       since: 2.0.00
62

See Also

64       mod_perl 2.0 documentation.
65
67       mod_perl 2.0 and its core modules are copyrighted under The Apache
68       Software License, Version 2.0.
69

Authors

71       The mod_perl development team and numerous contributors.
72
73
74
75perl v5.30.1                      2020-01-29         docs::api::APR::Base64(3)
Impressum