Skip to content

wasnotrice/wixy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wixy is a library for playing with classical ciphers. These are the ones you can work with pencil and paper. For starters, you can try:

Installing

$ gem install wixy

Getting started

You can use Wixy from the command line, like this:

$ wixy "my secret message"
$ wixy --decrypt --cipher vigenere --key pudding BSVHKEKIGHVANMT
$ wixy --help

or as a library, like this:

require 'wixy'
config = Wixy::Config.new do |config|
  config.cipher = :vigenere
  config.key = "SUSHIFROGGY"
end

# Using the Wixy module
ciphertext = Wixy.encrypt("my secret message", config)
plaintext = Wixy.decrypt(ciphertext, config)

# The same thing, but using the underlying cipher instance
cipher = Wixy::Vigenere.new
ciphertext = cipher.encrypt("my secret message")
plaintext = cipher.decrypt(ciphertext)

Contributing

Contributions are welcome! Pull requests with specs preferred :)

There are loads of cool ciphers around in addition to the few supported at the moment.

Have fun!

About

Classical pencil-and-paper ciphers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages