Module: Origami::Encryption::EncryptedDocument

Defined in:
lib/origami/encryption.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#encryption_handlerObject

Returns the value of attribute encryption_handler.



242
243
244
# File 'lib/origami/encryption.rb', line 242

def encryption_handler
  @encryption_handler
end

#encryption_keyObject

Returns the value of attribute encryption_key.



241
242
243
# File 'lib/origami/encryption.rb', line 241

def encryption_key
  @encryption_key
end

Instance Method Details

#encryption_cipher(name) ⇒ Object

Get the encryption cipher from the crypt filter name.



245
246
247
# File 'lib/origami/encryption.rb', line 245

def encryption_cipher(name)
  @encryption_handler.encryption_cipher(name)
end

#stream_encryption_cipherObject

Get the default stream encryption cipher.



255
256
257
# File 'lib/origami/encryption.rb', line 255

def stream_encryption_cipher
  @encryption_handler.stream_encryption_cipher
end

#string_encryption_cipherObject

Get the default string encryption cipher.



250
251
252
# File 'lib/origami/encryption.rb', line 250

def string_encryption_cipher
  @encryption_handler.string_encryption_cipher
end