Up | TOC | Index | |||||
<< 7 Included Tools | < 8.22 Wildcard Matching | Up: 8 API Reference | 8.24 Math > | 9 Release Notes >> |
8.23 Base 64 Encoding/Decoding
8.23.1 Routines
8.23.1.1 encode
include std/base64.e namespace base64 public function encode(sequence in, integer wrap_column = 0)
Encode to base64 (See also RFC 2045)
returns base64 encode of passed sequence.
Parameters:
- in - must be a simple sequence
- wrap_column - column to wrap the base64 encoded message to. defaults to 0, which is do not wrap
Returns:
a base64 encoded sequence representing in.
8.23.1.2 decode
include std/base64.e namespace base64 public function decode(sequence in)
Decode to base64 (See also RFC 2045)
Returns base256 decode of passed sequence. the length of data to decode must be a multiple of 4. calling program is expected to strip nl etc before calling.
Parameters:
- in - must be a simple sequence of length 4 to 76.