'\"
'\" Generated from ../tcllib/modules/base64/base64.man by mpexpand with fmt.nroff
'\"
.so man.macros
.TH "base64" n 2.2.1 base64 "base64 en- & decoding"
.BS
.SH NAME
base64 \- Procedures to encode and decode base64
.SH "SYNOPSIS"
package require \fBTcl 8\fR
.sp
package require \fBbase64 ?2.2.1?\fR
.sp
\fB::base64::encode\fR ?-maxlen \fIImaxlen\fR? ?-wrapchar \fIwrapchar\fR? \fIstring\fR\fR
.sp
\fB::base64::decode\fR \fIstring\fR\fR
.sp
.BE
.SH "DESCRIPTION"
.PP
This package provides procedures to encode binary data into base64 and back.
.TP
\fB::base64::encode\fR ?-maxlen \fIImaxlen\fR? ?-wrapchar \fIwrapchar\fR? \fIstring\fR\fR
Base64 encodes the given binary \fIstring\fR and returns the encoded
result. Inserts the character \fIwrapchar\fR every \fImaxlen\fR
characters of output. \fIwrapchar\fR defaults to newline.
\fImaxlen\fR defaults to 60.
.TP
\fB::base64::decode\fR \fIstring\fR\fR
Base64 decodes the given \fIstring\fR and returns the binary data.
The decoder ignores whitespace in the string.
.SH "KEYWORDS"
encoding, base64
