Module: IdCipher

Defined in:
lib/id_cipher.rb,
lib/id_cipher.rb

Defined Under Namespace

Classes: IntegerCipher

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.decrypt(id) ⇒ Object



16
17
18
# File 'lib/id_cipher.rb', line 16

def decrypt(id)
  IntegerCipher.new.decrypt(id)
end

.encrypt(id) ⇒ Object



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

def encrypt(id)
  IntegerCipher.new.encrypt(id)
end