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
25       Decode a base64 encoded string
26
27         $decoded = decode($encoded);
28
29       arg1: $encoded ( string )
30           The encoded string.
31
32       ret: $decoded ( string )
33           The decoded string.
34
35       since: 2.0.00
36
37       "encode"
38
39       Encode a string to base64
40
41         $encoded = encode($clear);
42
43       arg1: $clear ( string )
44           The unencoded string.
45
46       ret: $encoded ( string )
47           The encoded string.
48
49       since: 2.0.00
50
51       "encode_len"
52
53       Given the length of an unencoded string, get the length of the encoded
54       string.
55
56         $len_enc = encode_len($len_clear);
57
58       arg1: $len_clear ( integer )
59           the length of an unencoded string.
60
61       ret: $len_enc ( integer )
62           the length of the string after it is encoded
63
64       since: 2.0.00
65

See Also

67       mod_perl 2.0 documentation.
68
70       mod_perl 2.0 and its core modules are copyrighted under The Apache
71       Software License, Version 2.0.
72

Authors

74       The mod_perl development team and numerous contributors.
75
76
77
78perl v5.8.8                       2006-11-19         docs::api::APR::Base64(3)
Impressum