Method: Ccs::Decrypter#initialize

Defined in:
lib/ccs/decrypter.rb

#initialize(passphrase, content) ⇒ Decrypter

Constructs a Decrypter instance with given passphrase and content.

Examples:

Ccs::Decrypter.new('the content passphrase', content)

Parameters:

  • passphrase (String)

    Passphrase for content decryption

  • content (String)

    Encrypted document content



17
18
19
20
# File 'lib/ccs/decrypter.rb', line 17

def initialize(passphrase, content)
  @passphrase = passphrase
  @content = content
end