diff --git a/man/base32.1 b/man/base32.1 new file mode 100644 index 0000000..8d15bc2 --- /dev/null +++ b/man/base32.1 @@ -0,0 +1,53 @@ +.Dd Jan 12, 2025 +.Dt BASE32 1 +.Os HitchHiker Linux +.Sh NAME +.Nm base32 +.Nd base32 encode/decode data into the standard output +.Sh SYNOPSIS +.Nm +.Op Fl diqv +.Op Fl w Ar wrap +.Op Fl o Ar output +.Op Ar +.Sh DESCRIPTION +.Nm +reads from the standard input or from each file argument, and encodes +or decodes data based on the base32 scheme described in RFC 4648 into +the standard output. +.Pp +The following options are available: +.Bl -tag -width XXXXXXX +.It Fl d +Decode the input instead of encoding it. +.It Fl i +Ignore whitespace characters when decoding. +.It Fl w Ar wrap +Wrap lines longer than +.Ar wrap +characters using a newline. +The default number of characters is 76. +.It Fl o Ar output +Write output to +.Ar output +rather than to standard output +.It Fl q +Never print headers giving file names +.It Fl v +Always print headers giving file names +.El +.Sh EXIT STATUS +.Nm +exits with 0 if there was no error and non-zero if it could not encode or +decode, printing an error message. +.\" .Sh SEE ALSO +.\" .Xr b64_ntop 3 , +.\" .Xr b64_pton 3 +.Sh HISTORY +The +.Nm +command first appeared on +.\" Linux ?, MacOS/X ?, and +.Nx 9 . +.Sh AUTHORS +.An Nathan Fisher