Skip to content

ding-an-sich/ccifx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ccifx

A Caesar's Cipher implementation and repository.

Using the cipher

To encrypt messages, call Ccifx.crypt passing a phrase, a key and a cryptographic mode.

iex> Ccifx.crypt("MY SHARONA", 3, :left)
=> :ok

To decrypt the last message using the repository, call Ccifx.decrypt passing a cyptographic mode.

iex> Ccifx.decrypt(:left)
=> "MY SHARONA"

The repository

The repository holds the last call to each cryptographic mode. It stores the encrypted text and the key.

iex> Ccifx.crypt("MY SHARONA", 3, :right)
=> :ok
iex> Ccifx.Repository.retrieve(:right)
=> {3, "PB VKDURQD"}

TO-DO

  • Specs
  • Documentation
  • Tests
  • Let users decrypt any message
  • Implement :zigzag

About

Caesar's Cipher implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages