Module: EDB::Cryptography

Extended by:
IsModuleSupported
Defined in:
lib/edb/cryptography.rb,
lib/edb/cryptography/aes_256_cbc.rb

Defined Under Namespace

Modules: AES_256_CBC

Class Method Summary collapse

Methods included from IsModuleSupported

supports?

Class Method Details

.decrypt(method, file) ⇒ Object



36
37
38
39
# File 'lib/edb/cryptography.rb', line 36

def decrypt(method, file)
  this_module = to_module(method)
  this_module.decrypt(file)
end

.encrypt(method, file) ⇒ Object



31
32
33
34
# File 'lib/edb/cryptography.rb', line 31

def encrypt(method, file)
  this_module = to_module(method)
  this_module.encrypt(file)
end