A command-line utility that rotates each character in an ASCII text file by a certain order.
The rotation mechanism is similar to ROT13. Here, each ASCII character is rotated by its ASCII value.
Read the documentation.
protate FILE_IN N [-o] [FILE_OUT] [-p] [--h, --help, /?]
Parameters:
FILE_IN: The input file.N: The number of ASCII character rotations to do in each character. A negative value would indicate negative rotation.-o FILE_OUT: Would output the result generated fromFILE_INtoFILE_OUT. If omitted, the output would be written to./a.out.-p: Previews the output instead of saving it to a file.--h, --help, /?: Show usage help.
To build it using gcc or clang, compile it via the command-line using make.
> make protate
The sample file story.txt contains the following text:
A girl is playing there.
There is a playground.
An aeroplane is in the sky.
Numbers are not allowed in the password.
> protate 30 story.txt -o hiph0p
Generates text by rotating each character by order +30 and writes the output to./hiph0p.> protate hiph0p -30 -p
Decrypts the contents of./hiph0pby rotating it by order -30 and displays it instead of storing it due to the-pflag. If everything goes well, the output will be same as the originalstory.txtfile.> protate hiph0p -30
Decrypts the contents of./hiph0pby rotating it by order -30, and, since no output file is specified, writes the output to./a.out. If everything goes well, the output will be same as the originalstory.txtfile.
Made with ♡ by Param.