julius

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2014 License: MIT Imports: 9 Imported by: 0

README

julius

julius is a simple command line utility to encrypt and decrypt messages using the Caesar cipher. It is written in Go and makes use of the caesar.go package.

julius applies the Caesar cipher to all letters in the English alphabet. Non-English characters will be preserved in encrypted output however.

Installation

With the Go development tools installed and your $GOPATH set up, just run these commands:

go get github.com/alexjohnj/julius
go install github.com/alexjohnj/julius

Usage

Encryption

To encrypt a message using the default key of 13 (equivalent to applying a ROT13) you'd use the encrypt subcommand:

julius encrypt "Romani ite domum"

If you wanted to use a different key, pass the --key/-k flag:

julius encrypt --key=10 "Romani ite domum"
Decryption

To decrypt a message use the decrypt subcommand. Again, using the default key of 13 you'd do the following:

julius decrypt "Ebznav vgr qbzhz"

Or for a custom key:

julius decrypt --key=10 "Bywkxs sdo nywew"
Piped Input

julius accepts piped input and writes all of its text to stdout so these sort of commands are possibe:

cat secret-message.txt | julius encrypt --key=9> encrypted-secret-message.txt
Headers

You can include a PGP style header in encrypted output using the --include-header/-b flag. julius will automatically strip the header when decrypting a message.

Acknowledgements

julius makes use of the cli.go package by codegangsta.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL