class ZuoraConnect::AppInstanceBase
def fetch_cipher(type)
def fetch_cipher(type) raise "Type must be set to 'encrypt' or 'decrypt'" if !['decrypt','encrypt'].include?(type) cipher = OpenSSL::Cipher.new('AES-256-CBC') cipher.send(type) cipher.key = self.decrypted_data_key cipher.iv = Base64.strict_decode64(self.iv_key) return cipher end