apoc v0.1.2 Apoc View Source

Link to this section Summary

Functions

Decodes a URL safe base 64 string to binary

Encodes a binary as a URL safe base 64 string

Simple wrapper to :crypto.strong_rand_bytes/1. Returns a secure binary of num random bytes

Compares to bitlists for equality in constant time to avoid timing attacks

Link to this section Functions

Decodes a URL safe base 64 string to binary

Encodes a binary as a URL safe base 64 string

Simple wrapper to :crypto.strong_rand_bytes/1. Returns a secure binary of num random bytes

Link to this function secure_compare(left, right) View Source

Compares to bitlists for equality in constant time to avoid timing attacks.

See https://codahale.com/a-lesson-in-timing-attacks/ and Plug.Crypto.

Link to this function sign(message, key, opts \\ []) View Source
Link to this function verify(tag, message, key, opts \\ []) View Source