rf
: A CLI tool to encrypt and decrypt data using Rail Fence Cipher.
To build the rf
executable, you will need Zig (version 0.13.0)
. To compile for release:
$ zig build -Doptimize=ReleaseFast
The executable will be compiled as ./zig-out/bin/rf
.
Encrypt a file in-place using 3 rails:
$ rf -r3 /path/to/secret_file_to_encrypt
To decrypt the file, run the same command, appending "-d" to the arguments.
Encrypt to a file from console input using 3 rails:
$ rf -r3 - > /path/to/new_file
three
$ cat /path/to/new_file
teher
After inputting data, press Ctrl+d
twice instead of hitting enter.