mangle accepts input from a file or standard input, mangles the data, and outputs to a file or standard output.
Note: mangle is not cyrptographically secure - that's not its purpose. mangle is the binary equivalent of ROT13 - it does just enough to fool those pesky e-mail filters.
mangle an involutory program, i.e. it also de-mangles as mangle is its own inverse:
mangle --key 'peter pan' foo bar
mangle --key 'peter pan' bar recovered_foo
foo and recovered_foo are identical, bar is a "mess".
mangle [[-k,--key] phrase] [input_file [output_file]]
mangle -h | --help
--key, -k Provides a mangling key phrase for a little bit more privacy. The same key phrase must be used for mangling and de-mangling. If/when no key phrase is provided, then mangle is compatible with the mangle version 1.1.n.
--help, -h print this help information and exit.
input_file the file to be mangled/de-mangled. When no input file specified, or just '-' specified, the input is taken from standard input.
output_file target de-mangled/mangled file. When no output file specified, or just '-' specified, the output is sent to standard output.
mangle now takes an optional --key option.
This does not make mangle cyrptographically secure, however is does add a little bit of privacy.