Module: Wixy

Defined in:
lib/wixy.rb,
lib/wixy/bifid.rb,
lib/wixy/caesar.rb,
lib/wixy/config.rb,
lib/wixy/version.rb,
lib/wixy/alphabet.rb,
lib/wixy/vigenere.rb

Defined Under Namespace

Classes: Alphabet, Bifid, Caesar, Config, Vigenere

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.decrypt(text, config = Config.new) ⇒ Object



12
13
14
# File 'lib/wixy.rb', line 12

def self.decrypt(text, config = Config.new)
  new_cipher(config).decrypt(text)
end

.encrypt(text, config = Config.new) ⇒ Object



8
9
10
# File 'lib/wixy.rb', line 8

def self.encrypt(text, config = Config.new)
  new_cipher(config).encrypt(text)
end