View Source ExUid2.Dsp (ex_uid2 v0.1.0)

This is the client module for DSP-side decryption of UID2 tokens.

Summary

Functions

Returns a specification to start this module under a supervisor.

Attempts to decrypt a base64 encoded token.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

decrypt_token(token, now_ms \\ :os.system_time(:millisecond))

View Source
@spec decrypt_token(binary(), non_neg_integer()) ::
  {:ok, ExUid2.Uid2.t()} | {:error, any()}

Attempts to decrypt a base64 encoded token.