slash v2.0.4 Slash.Signature View Source

All Slack signature generation and verification happens in this module.

Link to this section Summary

Functions

Generate a signature given the key, timestamp, and body

Verify two computed signatures, returning true if the signatures match

Link to this section Functions

Link to this function

generate(secret, timestamp, body) View Source
generate(String.t(), String.t(), String.t()) :: binary()

Generate a signature given the key, timestamp, and body.

For more information on this computation see the Slack documentation.

Link to this function

verify(signature, signature) View Source
verify(binary(), binary()) :: boolean()

Verify two computed signatures, returning true if the signatures match.