Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ee1bbc5949
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (12 sloc) 0.443 kb

Vigenère Cipher

encode/decode any string using the Vigenère Cipher method.

Instalation

gem install vigenere

Usage

require 'vigenere'

Vigenere.encode('AAA', 'CAESAR') #=> "CAESAR"
Vigenere.encode('BIO', 'CAESAR') #=> "DISTIF"

Vigenere.decode('AAA', 'CAESAR') #=> "CAESAR"
Vigenere.decode('BIO', 'DISTIF') #=> "CAESAR"

Authors

Roberto Decurnex (nex.development@gmail.com)

Jump to Line
Something went wrong with that request. Please try again.