Curvy.Util (Curvy v0.2.0) View Source

Utility module for common and shared functions.

Link to this section Summary

Functions

Decodes the given binary with the specified encoding scheme.

Encodes the given binary with the specified encoding scheme.

Link to this section Functions

Specs

decode(binary(), atom()) :: {:ok, binary()} | {:error, any()}

Decodes the given binary with the specified encoding scheme.

Accepts :base64 or :hex, or will return the binary as is.

Specs

encode(binary(), atom()) :: binary()

Encodes the given binary with the specified encoding scheme.

Accepts :base64 or :hex, or will return the binary as is.