Skip to content

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

License

Notifications You must be signed in to change notification settings

monomycelium/rf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages