Class: CarrierWave::SecureFile::AESFileKeygen

Inherits:
Object
  • Object
show all
Includes:
AESFile
Defined in:
lib/carrierwave/securefile/aes_file.rb

Instance Attribute Summary

Attributes included from AESFile

#cipher, #cipher_type, #iv, #key

Instance Method Summary collapse

Methods included from AESFile

#init_cipher, #set_cipher_iv, #set_cipher_key, #set_cipher_method

Constructor Details

#initializeAESFileKeygen

Returns a new instance of AESFileKeygen.



70
71
72
73
74
75
# File 'lib/carrierwave/securefile/aes_file.rb', line 70

def initialize
	self.cipher_type = "aes-256-cbc"
	self.cipher = OpenSSL::Cipher.new(self.cipher_type)
	set_cipher_key
	set_cipher_iv
end