View Source Cosmox.Encryption (Cosmox v0.1.0)

Handles the header token encryption for REST calls to CosmosDB.

Link to this section Summary

Functions

Generates an encrypted payload from the given one using the encryption required by CosmosDB, with the given key.

Link to this section Functions

@spec decode_string(string :: binary()) :: {:ok, binary()} | {:error, binary()}
Link to this function

get_encrypted_payload(payload, key)

View Source
@spec get_encrypted_payload(payload :: binary(), key :: binary()) ::
  {:ok, binary()} | {:error, binary()}

Generates an encrypted payload from the given one using the encryption required by CosmosDB, with the given key.