A library for applying a shift (sometimes referred to as a Caesar) cipher to
ASCII characters. All printable characters, as well as the space \s
are shifted
by the given integer key value.
Rotn.encode("foobar", 7)
{:ok, "mvvihy"}
Includes a decode/2
function for reversing your mess when you want to know what
you wrote.
Why not?
You need to keep your secrets secret. And while we're at it, we might as well twist the knife on those who think a simple alphabetic Rot13 will get you there.
If available in Hex, the package can be installed
by adding rotn
to your list of dependencies in mix.exs
:
def deps do
[
{:rotn, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/rotn.