lib/ubiq/encrypt.rb
# Ubiq Encryption object
# This object represents a single data encryption key and can be used to
# encrypt several  separate plain texts using the same key
Ubiq Encryption object
This object represents a single data encryption key and can be used to
encrypt several  separate plain texts using the same key
Ubiq Encryption object This object represents a single data encryption key and can be used to encrypt several separate plain texts using the same key
def encrypt(creds, data)
    begin
      enc = Encryption.new(creds, 1)
      res = enc.begin + enc.update(data) + enc.end
      enc.close
    rescue StandardError
      enc&.close
      raise
    end
    return res
  end
def encrypt ( creds , data ) begin enc = Encryption . new ( creds , 1 ) res = enc . begin + enc . update ( data ) + enc . end enc . close rescue StandardError enc &. close raise end return res end
Ubiq Encryption object
This object represents a single data encryption key and can be used to
encrypt several  separate plain texts using the same key
Ubiq Encryption object This object represents a single data encryption key and can be used to encrypt several separate plain texts using the same key
creds
<not_specific>
data
<not_specific>