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.



311
312
313
# File 'lib/origami/encryption.rb', line 311

def crypt_filters
  @crypt_filters
end

#encryption_handlerObject

Returns the value of attribute encryption_handler.



309
310
311
# File 'lib/origami/encryption.rb', line 309

def encryption_handler
  @encryption_handler
end

#encryption_keyObject

Returns the value of attribute encryption_key.



308
309
310
# File 'lib/origami/encryption.rb', line 308

def encryption_key
  @encryption_key
end

#stm_filterObject

Returns the value of attribute stm_filter.



310
311
312
# File 'lib/origami/encryption.rb', line 310

def stm_filter
  @stm_filter
end

#str_filterObject

Returns the value of attribute str_filter.



310
311
312
# File 'lib/origami/encryption.rb', line 310

def str_filter
  @str_filter
end

Instance Method Details

#encryption_cipher(name) ⇒ Object

Get the encryption cipher from the crypt filter name.



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

def encryption_cipher(name)
    @crypt_filters[name]
end

#stream_encryption_cipherObject

Get the default stream encryption cipher.



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

def stream_encryption_cipher
    encryption_cipher @stm_filter
end

#string_encryption_cipherObject

Get the default string encryption cipher.



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

def string_encryption_cipher
    encryption_cipher @str_filter
end