lib/ubiq/decrypt.rb
# Class to provide data decryption, either as a simple
# single function call or as a piecewise where the
# entire data element isn't available at once or is
# too large to process in a single call.
Class to provide data decryption, either as a simple
single function call or as a piecewise where the
entire data element isn't available at once or is
too large to process in a single call.
Class to provide data decryption either as a simple single function call or as a piecewise where the entire data element isn ' t available at once or is too large to process in a single call .
def decrypt(creds, data)
    begin
      dec = Decryption.new(creds)
      res = dec.begin + dec.update(data) + dec.end
      dec.close
    rescue StandardError
      dec&.close
      raise
    end
    return res
  end
def decrypt ( creds , data ) begin dec = Decryption . new ( creds ) res = dec . begin + dec . update ( data ) + dec . end dec . close rescue StandardError dec &. close raise end return res end
Class to provide data decryption, either as a simple
single function call or as a piecewise where the
entire data element isn't available at once or is
too large to process in a single call.
Class to provide data decryption either as a simple single function call or as a piecewise where the entire data element isn ' t available at once or is too large to process in a single call .
creds
<not_specific>
data
<not_specific>