Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 790 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 790 Bytes

rf: A CLI tool to encrypt and decrypt data using Rail Fence Cipher.

build

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.

examples

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.