Module: Origami::Encryption::EncryptedDocument

Defined in:
lib/origami/encryption.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#crypt_filtersObject

Returns the value of attribute crypt_filters.



316
317
318
# File 'lib/origami/encryption.rb', line 316

def crypt_filters
  @crypt_filters
end

#encryption_handlerObject

Returns the value of attribute encryption_handler.



314
315
316
# File 'lib/origami/encryption.rb', line 314

def encryption_handler
  @encryption_handler
end

#encryption_keyObject

Returns the value of attribute encryption_key.



313
314
315
# File 'lib/origami/encryption.rb', line 313

def encryption_key
  @encryption_key
end

#stm_filterObject

Returns the value of attribute stm_filter.



315
316
317
# File 'lib/origami/encryption.rb', line 315

def stm_filter
  @stm_filter
end

#str_filterObject

Returns the value of attribute str_filter.



315
316
317
# File 'lib/origami/encryption.rb', line 315

def str_filter
  @str_filter
end

Instance Method Details

#encryption_cipher(name) ⇒ Object

Get the encryption cipher from the crypt filter name.



319
320
321
# File 'lib/origami/encryption.rb', line 319

def encryption_cipher(name)
    @crypt_filters[name]
end

#stream_encryption_cipherObject

Get the default stream encryption cipher.



329
330
331
# File 'lib/origami/encryption.rb', line 329

def stream_encryption_cipher
    encryption_cipher @stm_filter
end

#string_encryption_cipherObject

Get the default string encryption cipher.



324
325
326
# File 'lib/origami/encryption.rb', line 324

def string_encryption_cipher
    encryption_cipher @str_filter
end