Class: EzCrypto::Decrypter
- Inherits:
-
CipherWrapper
- Object
- CipherWrapper
- EzCrypto::Decrypter
- Defined in:
- 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
- #decrypt(data) ⇒ Object
-
#initialize(key, target = "", algorithm = "aes-128-cbc") ⇒ Decrypter
constructor
A new instance of Decrypter.
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/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/ezcrypto.rb', line 535 def decrypt(data) gulp(data) end |