Module: Encrubto::RotN

Defined in:
lib/encrubto/rotn.rb,
lib/encrubto/rotn/encryptor.rb

Defined Under Namespace

Classes: Encryptor

Class Method Summary collapse

Class Method Details

.decrypt(encrypted, offset) ⇒ Object



10
11
12
13
# File 'lib/encrubto/rotn.rb', line 10

def self.decrypt(encrypted, offset)
  rotn = Encrubto::RotN::Encryptor.new
  rotn.decrypt(encrypted, offset)
end

.encrypt(str, offset) ⇒ Object



5
6
7
8
# File 'lib/encrubto/rotn.rb', line 5

def self.encrypt(str, offset)
  rotn = Encrubto::RotN::Encryptor.new
  rotn.encrypt(str, offset)
end