App-Muter

 view release on metacpan or  search on metacpan

bin/muter  view on Meta::CPAN


=item sha1

=item sha224

=item sha256

=item sha3-224

=item sha3-256

=item sha3-384

=item sha3-512

=item sha384

=item sha512

=back

=head2 hex

Implements hex encoding.  Takes two options, C<lower> and C<upper>, that control
which type of letters are used.

=head2 identity

Implements the identity transform.  Passes through the input unmodified.

=head2 quotedprintable

Implements quoted-printable MIME encoding.  With the option C<smtp>, encodes "."
and "From " if they appear at the beginning of a line (including beginning of
input).

=head2 uri

Implements URI percent encoding.

Takes two possible options.  C<lower> and C<upper> control the type of hex
character emitted.

=head2 url64

Implements the L<RFC 4648|https://tools.ietf.org/html/rfc4648> Base64 Encdoing
with URL and Filename Safe Alphabet.

=head2 uuencode

Implements UUencoding.  Note that the "begin" and "end" markers are not emitted.

=head2 vis

Implements the L<vis(3)> function found on the BSDs.  The options supported
correspond directly to the constants that function takes.

The default encoding, if neither C<cstyle> nor C<octal> is specified, is to
encode control characters in the form C<\^C>, control characters with the eighth
bit set in the form C<\M^C>, other characters with the eighth bit in the form
C<\M-C>, and space and meta-space as octal escapes.

The flags C<httpstyle> and C<mimestyle> are not implemented.  Instead, use the
C<uri> and C<quotedprintable> encoders.

=over 4

=item cstyle

Use C-style backslash escapes for common control characters.  Space is encoded
as C<\s>.  NUL is encoded as C<\0> if the next character is not an octal digit
and C<\000> if it is.

=item glob

Encode the characters C<*>, C<?>, C<[> and C<#>, which are recognized by
L<glob(3)>.

=item nl

Encode newline.

=item octal

Encode characters as three-digit octal escapes.

=item sp

=item space

Encode space (U+0020).

=item tab

Encode tab.

=item white

Encode whitespace.  Equivalent to C<space,tab,nl>.

=back

=head2 xml

Implements encoding of XML special characters.  Note that the reverse transform
decodes arbitrary decimal and hexadecimal entities into UTF-8.

Takes one of the following three arguments:

=over 4

=item default

Use XML entity names.

=item hex

Use hexadecimal entity names for all entities.

=item html

Use XML entitiy names, except for the apostrophe, which uses a hexadecimal
entity.

=back

=head1 EXAMPLES

=over 4

=item B<muter> B<-c> -base64:uri

Decode the standard input as Base64 and output it, encoding it using URI
percent-encoding.

=item B<muter> B<-r> B<-c> -uri:base64

Exactly the same as the above.

=item B<muter> B<-c> -hex:hash(sha256):base64 I<file>

Read from I<file>, which contains a single hex-encoded string, hash the result
with SHA-256, and encode the result as base64.  This chain could also be written
as C<-hex:hash,sha256:base64>, which may be easier to type.



( run in 1.305 second using v1.01-cache-2.11-cpan-5b529ec07f3 )