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 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 two computed signatures, returning true if the signatures match.