Class: EzCrypto::Decrypter

Inherits:
CipherWrapper show all
Defined in:
lib/gems/ezcrypto-0.7/lib/ezcrypto.rb

Overview

Wrapper around OpenSSL Cipher for Decryption use.

You probably should be using Key instead.

Warning! The interface may change.

Instance Method Summary collapse

Methods inherited from CipherWrapper

#<<, #final, #gulp, #reset, #to_target, #update

Constructor Details

#initialize(key, target = "", algorithm = "aes-128-cbc") ⇒ Decrypter

Returns a new instance of Decrypter.



528
529
530
# File 'lib/gems/ezcrypto-0.7/lib/ezcrypto.rb', line 528

def initialize(key,target="",algorithm="aes-128-cbc")
  super(key,target,false,algorithm)
end

Instance Method Details

#decrypt(data) ⇒ Object



535
536
537
# File 'lib/gems/ezcrypto-0.7/lib/ezcrypto.rb', line 535

def decrypt(data)
  gulp(data)
end