Module: CaptchaEncryptor

Defined in:
lib/captchaencryptor.rb

Class Method Summary collapse

Class Method Details

.decrypt(input, key) ⇒ Object


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

def self.decrypt(input, key)
  decrypted_data = AESCrypt.decrypt(input,key)
  return decrypted_data
end

.encrypt(input, key) ⇒ Object


6
7
8
9
# File 'lib/captchaencryptor.rb', line 6

def self.encrypt(input, key)
  encrypted_data = AESCrypt.encrypt(input,key)
  return encrypted_data
end