Module: CcipherFactory::CompositeCipher

Defined in:
lib/ccipher_factory/composite_cipher/sign_encryptor.rb,
lib/ccipher_factory/composite_cipher/composite_cipher.rb,
lib/ccipher_factory/composite_cipher/decrypt_verifier.rb

Defined Under Namespace

Modules: DecryptVerifier, SignEncryptor Classes: CompCipher, CompositeCipherError

Class Method Summary collapse

Class Method Details

.decrypt_verifier(opts = { }) ⇒ Object



16
17
18
19
20
# File 'lib/ccipher_factory/composite_cipher/composite_cipher.rb', line 16

def self.decrypt_verifier(opts = {  })
  cc = CompCipher.new
  cc.extend(DecryptVerifier)
  cc
end

.sign_encryptor(opts = { }) ⇒ Object



10
11
12
13
14
# File 'lib/ccipher_factory/composite_cipher/composite_cipher.rb', line 10

def self.sign_encryptor(opts = {  })
  cc = CompCipher.new
  cc.extend(SignEncryptor)
  cc
end