APR::Base64 - Perl API for APR base64 encoding/decoding functionality
use APR::Base64 (); my $clear = "foo" my $encoded = APR::Base64::encode($clear); my $decoded = APR::Base64::decode($encoded); my $len_enc = APR::Base64::encode_len(length $clear);
User Contributed Perl Documentation
build::sparcv9::docs::api::APR::Base64(3)
NAME
APR::Base64 - Perl API for APR base64 encoding/decoding functionality
Synopsis
use APR::Base64 ();
my $clear = "foo"
my $encoded = APR::Base64::encode($clear);
my $decoded = APR::Base64::decode($encoded);
my $len_enc = APR::Base64::encode_len(length $clear);
Description
"APR::Base64" provides the access to APR's base64 encoding and decoding
API.
API
"APR::Base64" provides the following functions and/or methods:
"decode"
Decode a base64 encoded string
$decoded = decode($encoded);
arg1: $encoded ( string )
The encoded string.
ret: $decoded ( string )
The decoded string.
since: 2.0.00
"encode"
Encode a string to base64
$encoded = encode($clear);
arg1: $clear ( string )
The unencoded string.
ret: $encoded ( string )
The encoded string.
since: 2.0.00
"encode_len"
Given the length of an unencoded string, get the length of the encoded
string.
$len_enc = encode_len($len_clear);
arg1: $len_clear ( integer )
the length of an unencoded string.
ret: $len_enc ( integer )
the length of the string after it is encoded
since: 2.0.00
See Also
mod_perl 2.0 documentation.
Copyright
mod_perl 2.0 and its core modules are copyrighted under The Apache
Software License, Version 2.0.
Authors
The mod_perl development team and numerous contributors.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+-----------------------------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+-----------------------------------------+
|Availability | web/server/apache-24/module/apache-perl |
+---------------+-----------------------------------------+
|Stability | Uncommitted |
+---------------+-----------------------------------------+
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from
https://www.apache.org/dist/perl/mod_perl-2.0.12.tar.gz.
Further information about this software can be found on the open source
community website at https://perl.apache.org/.
perl v5.32.0 2022-01-30
build::sparcv9::docs::api::APR::Base64(3)