Translate is a Python tool to translate files; you give it a Python expression that converts the input file byte per byte to the output file.
In this update, I added option -f (fullread) to process files in one go, and not byte per byte.
It works just like the byte per byte process, but in stead of a Python expression that transform a byte, you provide a Python function that transforms a string. This Python function must take a string as argument (the content of the file) and return a string as argument (the converted file).
I used this in my “Analysis Of An Office Maldoc With Encrypted Payload (Slow And Clean)” post.